Jump to content

I cannot access my database


Guest Gulano
 Share

Recommended Posts

Hi everyone,

 

I am new with Linux and I am also new on this forum.

 

I have a problem with my mysql database.

 

I cannot access it.

 

The problem is that connection cannot be make because of a socket problem.

 

When I am in the terminal I am typing:

 

mysql -u root -p

I am typing my password but I am getting that message.

 

Thank you in advanced.

 

Gulano

 

 

[moved from Workbench by spinynorman - welcome aboard :)]

Link to comment
Share on other sites

Is the database local (on your macinhe), Im guessing yes for now...

Its probably not setup to listen on pipes??

can you post /etc/mysql/my.cnf (might be in a slightly different location)

also check you actually set a password for root on mysql... (try without -p)

Link to comment
Share on other sites

Hi Gowator,

 

Thanks.

 

This is my my.cnf file

 

----------------------------------------------------------------------

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

 

[mysql.server]

user=mysql

basedir=/var/lib

 

[safe_mysqld]

err-log=/myweb_log/log/mysql_log

pid-file=/var/run/mysqld/mysqld.pid

 

----------------------------------------------------------------------

 

Thank you in advanced

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...