Linux 下一个 Mysql error 2002 错误解决
2015-09-27 20:03
627 查看
Linux 下一个 Mysql error 2002 错误解决
首先查看 /etc/rc.d/init.d/mysqld status 查看mysql它已开始.
假设启动的的话,先将数据库停止 kill mysql的进程id
[root@localhost beinan]#chown -R mysql:mysql /var/lib/mysql
[root@localhost beinan]# /etc/init.d/mysqld start
启动 MySQL: [ 确定 ]
[root@localhost lib]# mysqladmin -uroot password '123456'
[root@localhost lib]# mysql -uroot -p --登录数据库
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.1.11
Type 'help;' or '/h' for help. Type '/c' to clear the buffe
OK!
首先查看 /etc/rc.d/init.d/mysqld status 查看mysql它已开始.
假设启动的的话,先将数据库停止 kill mysql的进程id
[root@localhost beinan]#chown -R mysql:mysql /var/lib/mysql
[root@localhost beinan]# /etc/init.d/mysqld start
启动 MySQL: [ 确定 ]
[root@localhost lib]# mysqladmin -uroot password '123456'
[root@localhost lib]# mysql -uroot -p --登录数据库
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.1.11
Type 'help;' or '/h' for help. Type '/c' to clear the buffe
OK!
相关文章推荐
- Linux 读书笔记 二
- Linux学习笔记之 RPM包管理、Yum安装,配置及使用
- CentOS学习8_CentOS取消自动待机休眠
- 图解Linux命令之--chgrp命令
- 图解Linux命令之--lsattr命令
- centos7将网卡名字改成eth样式
- kvm虚拟化学习笔记(二)之linux kvm虚拟机安装
- Linux第二次报告20135221
- linux查看网卡速率
- 嵌入式Linux应用开发——Linux下的C编程基础
- Linux 基础入门 第二周9.21~9.27
- 在阿里云的CentOS 6.5 上面安装 timidity++ 和 ffmpeg(含libmp3lame) 实现命令行将midi转换为mp3
- 20135316王剑桥 linux第二周课实验笔记
- Linux第二次学习笔记
- linux的简介 linux与windows服务器系统的区别
- linux 命令
- linux的运行级别介绍
- Linux之xz压缩用法
- linux下C语言开发入门
- CentOS 7 中 pptpd安装