Squid + mysql + mysql_authsquid Authentication Users cannot be added, authentication fails
Source: Internet
Author: User
Squid + mysql + mysql_authsquid cannot be added to authenticate users, and cannot pass the -- Linux Enterprise Application-Linux server application information. The following is the details. I am a newbie. How can I handle this error? Thank you.
[Root @ mail ~] # D/home/mysql_auth-0.8
[Root @ mail mysql_auth-0.8] # cd scripts/
[Root @ mail scripts] # mysql-u root-p <create_script
Enter password:
[Root @ mail scripts] # mypasswd yang 123456
Can't connect to mysql server: localhost.
Error was: 2002-Can't connect to local MySQL server through socket '/var/lib/mysql/mysqld. sock' (2). // Error
[Root @ mail scripts] # cd/var/lib/mysql/
[Root @ mail mysql] # ls-l
Srwxrwxrwx 1 mysql 0 04-29 17:04 mysql. sock
[Root @ mail mysql] # cd/home/mysql_auth-0.8
[Root @ mail mysql_auth-0.8] # mysql-u root-p <mysql_auth
Enter password:
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elf
'At line 1 // Error
I am a newbie. How can I handle this error? You cannot add it. Thank you.
In order to save network resources, I would like to thank you for your reply as follows!
For example:
Check whether the service is started normally.
View directory permissions again
Check whether the configuration is incorrect.
1. Read a few more documents to check whether there are any missing steps in the configuration process.
2. Search for these two posts with similar errors on the Internet to see how they solve them!
Can't connect to mysql server: localhost.
Can't connect to local MySQL server through socket '/var/lib/mysql/mysqld. sock' (2)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service