I am trying to create connection to mysql using Navicat but I am getting this error.
I am using following settings
Host/Ip Address: localhost
Port: 3306
UserName: root
Password:
You can Whether it is right by checking user&password
Try changing localhost to 127.0.0.1
Actually,I think only you can sign in by Mysql client then the same in Navicat work.
Related
I have installed XAMPP on my ubuntu. Everything are installed in /opt/lampp directory.
When I run localhost/phpmyadmin, it is working fine and I can create database as well.
But when I try to setup using Navicat, it is returning me
2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")
My server is also running sudo /opt/lampp/lampp start
I have used following configuration:
Host: localhost
Port: 3306
User Name: root
Password: my_password
Can anybody please help me here.
Thank You.
Use 127.0.0.1 ip address instead of localhost to connect to MySQL.
Reason:
When using localhost to connect to MySQL, the operating system will use the socket connector.
If you use the 127.0.0.1 ip address, the operating system will use the TCP/IP connector.
I'm working on laravel project (for the first time), And I want to use MySQL workbench for database.
But when I set my settings
host: 127.0.0.1
port: 33060
user: homestead
pass: secret
I got this error:
Lost connection to MySQL server at 'reading initial communication packet, system error: 0
What can I do?
Note : I'm using windows 10
UPDATE #1 : Mysql workbench worked with these settings :
But I got an error when i tried to make (php artisan migrate)
This is a screen shot from my .env file:
I Solved the problem by doing vagrant up and using the port 3306
You are using the wrong port. 33060 is the default port for the new X protocol. MySQL Workbench however only uses the classic protocol atm.
I'm trying to connect to mysql workbench but I get the following error
Error Message Cannot Connect to Database Server
Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306: Could not open database.
Please: 1. Check that mysql is running on server 127.0.0.1
Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines).
Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting.
i installed mysql server too in with workbench.help me
I saw many threads on forums and Stackoverflow about this issue but none were addressing in a way that worked for me.
I used the following credential on my host computer (using Sequel Pro) to log in homestead MySQL as documented:
host: 127.0.0.1
username: homestead
password: secret
It says that "Unable to connect to host 127.0.0.1, or the request timed out".
I then tried to log using ssh:
MySQL host: 10.0.2.15
Username: homestead
Password: secret
Port: 3306
SSH host: 192.168.10.10
SSH user: vagrant
SSH Password: ~/.ssh/id_rsa
I got "Connection failed: Your password has expired. To log in you must change it using a client that supports expired passwords."
I then followed this to change my password.
homestead ssh
mysql -uhomestead -psecret
SET PASSWORD = PASSWORD('secret');
That fixed my problem as I was now able to connect from ssh as described above.
I've created a MySQL server in my local machine with default settings. Now I'm trying to connect to that Database with Oracle Sql Developers with
Connection Name: mySQLDB
Username: root
Password: ******
Connection Type: Basic
Hostname: localhost
Port: 3306
SID:____
I'm not sure what the SID would be, by default its xe., I've tried using this it won't work.
Here is the error my getting.
Status : Failure-Test failed: String index out of range: 14137
Could someone please help me out in connecting to the database in MySQL servers.