I am newbie to cloud hosting. My Client has created his domain in digitalocean. He then provided me with the username and password to access the site. Through filezilla I am able to ftp the site with the credentials he had provided. He had also stated MariaDB has been installed for mysql; but I am unable to login to my mysql server. I tried to initiate a mysql connection using the MySQL Workbench but it failed. Would appreciate any help on how I can access the mysql server using my Windows Machine.
This article might be of interest to you: http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
Related
I've been using a GoDaddy hosted site to connect to a MySQL server with PHP and then populate a table with the query. We just recently switched over to a new MySQL server and now I am not able to connect. All I get is this error message:
Database connection error: Can't connect to MySQL server on
'54.203.51.124' (110)(2003)
The only difference between this server and the old one is the IP. The user, password, and name are all the same. I'm able to connect fine using MySQL Workbench but with PHP on the GoDaddy site. I've added the website IP address to the firewall and it didn't change anything. Thanks in advance.
Edit: Sorry, I should have clarified that this is a remote connection and not local.
I am currently programming a launcher in Visual Studio that gets the version history from a MySQL server. I have run into an issue where I cannot connect to the database if I use a public login for the database. If I use the root login I can connect on my local machine but no other. This is what I am using with subins to protect my data:
"server='serverip';user='severusername';password='serverpassword';database'databasename'"
If I use the root password, it will connect on my local computer. If I use my godaddy hosting database, it will also work on any computer. The MySQL server I am connecting to is on my local computer and running WAMP. Does anyone know a way to get it to work? My user has full permissions. This is programmed in Visual Studio using Visual Basic.
It appears that you have a typo:
database'databasename'
Should that not be:
database='databasename'
Also, it could be that godaddy does not allow remote connections for MySQL so when you try to connect from your local WAMP installation to their remote MySQL server the connection is denied. This is more than likely the case as the bandwidth cost for this can become quite huge very quickly. You should however be able to run things in the shared hosting environment using localhost as the server/hostname.
I fixed it by adding 2 cases of my user. One with a host of localhost and another with a host of 127.0.0.1
I'm using SqlSrv to connect to a Microsoft SQL Server. So far I was struggling to get SqlSrv to work, but that's ok now. On a Windows 2012R2 machine with XAMPP (PHP 5.5.19) I'm trying to connect to the database using Windows Authentication.
According to the documentation I'm using SQL Server Authentication when I'm providing UID and PWD in the connection options. So I left those options out but now the server tries to connect to the database as Domain\ServerName instead of Domain\MyWindowsUserAccountName. How can I set up the script to connect with my user credentials? Maybe I'm missing out on something obvious in the documentation...
According to document you should set Trusted_Connection to "yes"
I am very new to this server setup and database connectivity. I googled a lot but couldn't find the solution for it.I am developing an android application which needs to post data to remote database. Which is done.
Now i have to setup MySQL Database in the new Windows Server 2008. I have installed and managed to get access the root user(Which is fine). Now i want to access this database from my local computer[Which is iMac]. I already set the privileges by following this link. When i tried to run from my web application it shows the following error.
Error: unable to connect to database. Host 'xx.xx.xxx.x' is not allowed to connect to this MySQL server
Here is my questions
1.) How to get access to the remote MySQL database from any computer?
2.) How to run the web application in the server?Like Web Hosting i.e Do i need to setup ftp account and put the stuff over there?(For Eg: testhost.com/connecttodatabase.php by executing this it will execute whatever code in testhost server. But i have no idea how to do that for my server).
Any help is much appreciated.
Alternately, You can also try...
use the_database_name;
GRANT ALL PRIVILEGES ON
the_database_name.*
TO
'the_user_in_php_code'#'%'
IDENTIFIED BY
'password_of_the_user_in_php_code';
FLUSH PRIVILEGES;
source:
http://forums.devshed.com/mysql-help-4/host-is-not-allowed-to-connect-to-this-mysql-server-366908.html
I'm trying to connect to a remote server's mysql instance from PHP on my main server.
The main server itself has no mysql installed but the server I'm trying to connect to has mysql installed.
PHP is installed on both servers but I was wondering if it would connect when mysql isn't installed locally.
You only need a client mysql library specific to your database connection stack, not a mysql server installation.
There's no reason that I can see for it not working. Keep in mind that you'll need the hostname of the server and the server will have to have remote_access configured.
All you need is to have the second server's URL and SQL info such as username and password.
no reason for it not to work.