Cannot follow external database(MySQL) of openfire server quide - mysql

I have MySQL database which I created on university's server
I try to develop android application that can send msg from mobile through XMPP protocol to keep data at my database server(from 1.)
At this time, I already downloaded openfire 3.7.0.dmg(MAC OS X) then try to setup server on my laptop
My problem is I cannot follow Database Installation Guide the error occurred: Does not have mysqladmin command at my Terminal. So, I cannot create table for openfire. Should I need to install MySQL on my laptop ?
Moreover, I pretty much confuse with [YOUR_HOST] of this statement :
jdbc:mysql://[YOUR_HOST]/[DATABASE_NAME]
I don't know what is it? should be localhost or anything?
Anyone can help me ? Thank you so much

You need to have MySQL installed on one computer you have access to. If you want to install it on your Mac, you can either download it directly from mysql.com, or you could install it using a package manager like Homebrew.
Next, make sure your MySQL install can listen for connections over TCP; there's a troubleshooting guide for that.
Next, use the name of the machine your MySQL server is running on in place of [YOUR_HOST]. If it's running on the same machine as OpenFire, you can use localhost.

Related

How to login to PhpMyAdmin with a Deck.app mysql instance?

Using the deck app, that uses Multipass & Docker to build containers and instances of specific technologies (such as Laravel, CodeIgnite, Apache, etc.,) to create a mysql instance it installs a copy of phpmyadmin and allows you to view the server through the browser.
I cannot logon to the phpmyadmin page that is created by this mysql/phpmyadmin instance in the deck app
I have messed around using CLI (terminal) to initiate the server to make it active, however this generally resulted in errors.
I have web hosting that allows me to use remote myqsl through cpanel but I don't know how to connect it to a localhost.
I would like to know how to login or use the mysql server.
I would appreciate advice on what I need to do to make this new mysql instance usable, so I can get a username, password & database name to utilise in a laravel project.
I would also like to know if there is any better solution for creating a mysql & phpmyadmin database to use for a laravel project.
Thanks in advance!
I have messed around using CLI (terminal) to initiate the server to make it active, however this generally resulted in errors.
What are the errors?
I have web hosting that allows me to use remote myqsl through cpanel but I don't know how to connect it to a localhost.
You wouldn't; you'll want to install your own phpMyAdmin locally rather than connecting your web host to your local server. You should not expose your local database server to the internet.
I would like to know how to login or use the mysql server.
Using the password you set during installation, or if you weren't prompted, usually it's a blank password.

Connect To MYSQL Through Virtual Machine

I have windows and am running ubuntu 16.4 on a virtual machine for my analysis, I have installed and created user login and password to mysql databank through VM using this instruction:
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04
but now I don't understand how I can connect to it with my windows browser? Is it even possible to connect to mysql from my windows because technically I have installed it on another system (VM Ubuntu 16.4)?
I would appreciate if someone could guide me since I am a beginner. thanks
You don't connect to a database server like MySQL using a browser, but rather with a dedicated client program.
Some installations of MySQL also have a web program running called phpmyadmin. You can use that web program from your browser to do things to your MySQL server. But the digital ocean tutorial you followed doesn't install that.
You need a MySQL client program running on your Windows machine to connect to the MySQL server on your VM. Ansgar Becker's HeidiSQL is a good choice. So is MySQL Workbench from the MySQL team.
And, be sure you can ssh from your Windows machine to your VM before you try all this stuff. You'll need to know the IP address of your VM when you connect to your MySQL server from your MySQL client.
Let's say your Windows machine has IP 192.0.2.101 and your VM has IP 192.0.2.121. You need to follow the steps in this part of your tutorial to create a MySQL user profile that can connect from your Windows machine. Something like this.
CREATE USER 'xyz0o'#'192.0.2.101' IDENTIFIED BY 'someHardToGuessPassword';
FLUSH PRIVILEGES;
To create that user you need to ssh into your vm and run the mysql command line program.
Then from your client on your Windows machine you'll connect to the MySQL server on 192.0.2.121 using whatever username / password combination you gave in the CREATE USER command.

DB communication through proxy server

My problem looks like this:
A clientele has one, with a proxy, foreclosed network. However, they want to synchronize information (using odbc-connector) with a database server running on there own Linux server. Unfortunately, only very few ports are open and they do not want to open any further ports.
My idea is that I run the database communication over one of the open ports.
Since I've not done something like this so far, and I'm not really got any further with google search. So I was unfortunately not been able to change the default port of the database server in Plesk on e.g. Port 8080.
I'll be very happy about suggestions:
Either via help changing the port OR also over other ideas, how this problem could be solved more easily.
Thank you in advance!
The system in question looks as follows:
MySQL 5.5.55
Php: 5.6
Plesk Onyx 17.0.17
Ubuntu 14.04.5 LTS

ExpressionEngine Installation Issues: Database Connection Error on Localhost

Running into an odd issue with a getting a successful localhost install of ExpressionEngine 2.5.3.
I am able to run the ExpressionEngine Installation and Update Wizard where server settings, database setting and admin account information is entered. So the Apache side is working as expected, or so I assume.
The issue crops up when I click on the Install ExpressionEngine button — the point where the installer starts working it's magic — get this error:
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/wizard.php
Line Number: 1532
For the SQL Server Address, Username and Password, I am using the same values I have used in the past: localhost for the server address, root for the username and root for the password.
Those credentials work when used with Sequel Pro 0.9.9.1.
Permissions on config.php and database.php — both empty files — are set to 666, as suggested by the ExpressionEngine installation documentation.
I am trying this on a MacBook Air running 10.8.2 with the built-in Apache and MySQL running via XAMPP. I am using VirtualHost X to so http://baseline.loc/ points to baseline.loc in my Sites folder. There are no other instances of Apache or MySQL running.
I am not well versed debugging server issues but I am comfortable working in the terminal.
Any ideas what I should be looking at to figure out why this usually basic stage of a new project has become a stumbling block?
I've had issues before using localhost as the host. Does 127.0.0.1 work for you?
I've had similar in OSX using mamp, simply changed the folder permission of the web folder to everyone read/write via finder and that did the trick

How do I connect VS2010 to a MySQL database (locallay on another computer)?

I have a MySQL database on another windows computer (a server) that is setup locally using remote desktop connection for testing.
How can I connect to that local database to Visual Studio 2010 on "my computer"?
Server Computer(MySQL database setup local) --> My Computer(Visual Studio for test code..)
I am new to MySQL and any suggestions will help.
Thanks
PS: I have found this, but the "Server Name" for the database is 127.0.0.1 which I can't use because it is local on whatever computer you are on.
http://geekswithblogs.net/mbridge/archive/2010/12/13/visual-studio-2010-hosting--connect-to-mysql-database-from.aspx
You'll have to use the address of the computer that it is hosted on. It should be the same as the address you use to connect to the remote desktop session.
You might need to configure the firewall to accept the connection. You also might need to setup MySQL to allow remote connections with the user that you authenticate with.
I would recommend downloading MySQL workbench and install it on your local computer. Once you get the connection working with that, you should be able to use the connection with VS2010.
If you're not sure how to do the things listed above, you'll need to start out with a basic tutorial on setting up MySQL for remote connectivity.