ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
我尝试了在互联网上找到的一切,但是无法解决Ubuntu 11.04上的问题.
我试过这些东西:
>使用sudo /usr/sbin / mysqld启动手动启动mysqld
>启动mysqld使用服务mysqld启动
>使用ps ax |检查它正在运行的grep mysqld的并得到结果3419个PTS / 0 S 0:00的grep –color =汽车的mysqld
>在/ var / run / mysqld / mysqld.sock手动创建文件
>获得对mysql用户的权限
试图删除和重新安装,但仍然不起作用
>尝试配置LAMP,每件事情都可以工作,但是mysql生成相同的错误.
当运行mysqld -P 3305它会生成错误
110630 0:24:24 [Warning] Can't create test file /var/lib/mysql/nazar-studio.lower-test
110630 0:24:24 [Warning] Can't create test file /var/lib/mysql/nazar-studio.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
110630 0:24:24 [ERROR] Aborting
110630 0:24:24 [Note] mysqld: Shutdown complete
这是mysql的错误日志
10630 0:07:22 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:22 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:22 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
110630 0:07:22 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
110630 0:07:22 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
110630 0:07:22 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
110630 0:07:23 InnoDB: Started; log sequence number 0 0
110630 0:07:23 InnoDB: Starting shutdown...
110630 0:07:28 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:28 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:28 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:28 InnoDB: Completed initialization of buffer pool
110630 0:07:28 InnoDB: Started; log sequence number 0 44233
ERROR: 1064 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 'ALTER TABLE user ADD column Show_view_priv enum('N','Y') CHARACTER SET utf8 NOT ' at line 1
110630 0:07:28 [ERROR] Aborting
110630 0:07:28 InnoDB: Starting shutdown...
110630 0:07:34 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:34 [Note] /usr/sbin/mysqld: Shutdown complete
110630 0:07:34 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:34 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:34 InnoDB: Completed initialization of buffer pool
110630 0:07:34 InnoDB: Started; log sequence number 0 44233
110630 0:07:34 InnoDB: Starting shutdown...
110630 0:07:39 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:39 [Note] Plugin 'FEDERATED' is disabled.
110630 0:07:39 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:07:39 InnoDB: Completed initialization of buffer pool
110630 0:07:39 InnoDB: Started; log sequence number 0 44233
ERROR: 1050 Table 'plugin' already exists
110630 0:07:39 [ERROR] Aborting
110630 0:07:39 InnoDB: Starting shutdown...
110630 0:07:44 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:07:44 [Note] /usr/sbin/mysqld: Shutdown complete
110630 0:18:30 [Note] Plugin 'FEDERATED' is disabled.
110630 0:18:30 InnoDB: Initializing buffer pool, size = 8.0M
110630 0:18:30 InnoDB: Completed initialization of buffer pool
110630 0:18:30 InnoDB: Started; log sequence number 0 44233
mysqld: Too many arguments (first extra is 'start').
Use --verbose --help to get a list of available options
110630 0:18:30 [ERROR] Aborting
110630 0:18:30 InnoDB: Starting shutdown...
110630 0:18:35 InnoDB: Shutdown completed; log sequence number 0 44233
110630 0:18:35 [Note] mysqld: Shutdown complete
如何解决这个错误?