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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...