Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-09-2004, 06:29 AM
|
#1
|
Member
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123
Rep:
|
Can not get access to mysql by normal user
Hi,
I can not get access to mysql by normal user in my computer ( I can do it by root )
in the normal user's terminal, I type:
[wangjunwei@so-19661-x0 wangjunwei]$ mysql -h localhost -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
How can I fix it?
It seems my Fedora2 use mysql 3.23.58, because it says:
[root@so-19661-x0 lib]# mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> Use mysql;
How can I upgrade to mysql 4.0,?
Cheers!
|
|
|
04-11-2004, 02:03 AM
|
#2
|
Member
Registered: Apr 2004
Location: Minneapolis
Distribution: Ubuntu
Posts: 45
Rep:
|
Try logging in without using a password, like so:
It's usually a good idea to create user accounts rather than logging in as the default (root without password). For information on user management in MySQL, see here:
http://dev.mysql.com/doc/mysql/en/Us...anagement.html
You can download version 4.0 of MySQL here:
http://dev.mysql.com/downloads/mysql/4.0.html
You want "Linux x86 RPM downloads". Install them all once you've downloaded them using the command 'rpm -Uhv MySQL*rpm'.
|
|
|
04-11-2004, 01:20 PM
|
#3
|
Member
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123
Original Poster
Rep:
|
Hi,
I create a normal user in mysql named "wangjunwei", when I login in Linux as my root account, I can get access to mysql with my normal mysql account "wangjunwei".
[root@so-19661-x0 wangjunwei]# mysql -h localhost -u wangjunwei -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
But when I login my linux as my normal account, I can not get access to mysql database, do you know why?
[wangjunwei@so-19661-x0 wangjunwei]$ mysql -h localhost -u wangjunwei -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
|
|
|
10-27-2010, 03:33 AM
|
#4
|
LQ Newbie
Registered: Jan 2006
Location: Bangalore : INDIA
Distribution: Ubuntu, RedHat, Gentoo, Linux Mint, Arch Linux, Fedora
Posts: 26
Rep:
|
Hi,
Have you done this "mysql_enable=YES" in your configuration file ?
|
|
|
All times are GMT -5. The time now is 07:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|