I've just set up my very first Debian 7.9 server. I also installed a regular LAMP stack with MariaDB. The database is working, I've already created another user.
The problem comes up when i try to connect to my server's MariaDB from my laptop (ubuntu 14.04). I installed mariadb-client on my laptop and tried to connect via:
mysql -u myusername -p myserversadress
The error I get is:
ERROR 2003 (HY000): Can't connect to MySQL server on ... (111)
What does it mean?
mysql -u myusername -p -h myserversadress
The "host" was assumed to be localhost, and they command, if it could connect, would look for database myserversadress.
Related
I've installed mysql server 5.5 in localhost under debian 9. When I open MySQL Workbench I cannot create a connection. When I try to create a connection an alert appears "cannot connect to database server. Access denied for user root at localhost"
I tried to access in mysql server using:
mysql -u root -p -h 127.0.0.1 -P 3306
And I use the password 'root' that I've before setted
Error 1968 appears and I don't know how to do.
Any Idea?
I'm new to Ubuntu.
I have xampp installed on Ubuntu and works just fine. But when I am trying to run mysql -u username -p pass from terminal I recieve this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'.
I've tried to install mysql-server again but it runs completely separate (has another database....and is not working with phpmyadmin from xampp).
How can I make it work in terminal from xampp server?
Your mysql-database might not be running at all!
Try this: sudo /etc/init.d/mysql start then mysql -u yourusername -p yourpasswrd
Hey guys i'm new to this. I have a PC running win 10 and installed mysql. I have a VPS and it runs UBUNTU 14.04.5 LTS. i have registered in www.noip.com for dynamic dns. i simply wanna access my local database from VPS like
mysql -u door -h mylocaldatabase.hopto.org -P3306 -p
but i get this error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'mylocaldatabase.hopto.org' (101)
what should i do?
I've installed the mysql community server, server is running, and i'm able to connect through command line using
mysql -u root -p -h 127.0.0.1 -P 3307
which is the community server. I've also installed wamp which has its mysql server running on port 3306, the command above also connects to that server again
wamp is running fine and i'm able to get into phpmyadmin just fine, but when i try connecting to either mysql server through localhost using workbench, i'm presented with an error "Failed to connect to MySQL at 127.0.0.1:3307 with user root
Unknown MySQL server host '127.0.0.1' (0)"
I've been searching online for hours now and i can't seem to find any solutions to this. The only problem i'm having is connecting through workbench.
Are there any settings for workbench that i might have to change in order to connect to the servers?
EDIT:
This is all on windows by the way. I've also reinstalled wamp, workbench, and mysql server multiple times
I'm trying to connect to the mysql server on my mac using terminal. I've already got MAMP on my mac but now I have installed XAMPP. when I type this into my terminal
mysql -u root -p
it comes up with this message...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/Applications/MAMP/tmp/mysql/mysql.sock' (2)
I'm wondering is it because of XAMPP? Any suggestions?
have you tried
mysql -h 127.0.0.1 -u root -p
(if the mysql server isn't running on your local box, substitute the IP address of the mysql server for 127.0.0.1)