安装mysql
来源:互联网 发布:什么是淘宝黑搜 编辑:程序博客网 时间:2024/04/30 11:19
==>>
mysql root 密码是123 , 后续你需要导入数据库。现在已经进入mysql 环境状态了. exit 可直接退出 ,如下。
mysql> exit
Bye
hiterminal@test:/etc/mysql$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 95
Server version: 5.5.35-1ubuntu1 (Ubuntu)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
====》至于为什么出现这个 '/var/run/mysql/mysqld.sock',原因未知。
问题解决方法,
1. 先解决 你如下出现的安装包依赖项的问题
sudo apt-get autoclean
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get install libc6-dev-i386
2. 干净删除 现有的 mysql
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
3. 再重新安装
sudo apt-get install mysql-server
sudo apt-get install mysql-client
4. 重启 mysql 服务程序
sudo /etc/init.d/mysql restart
5. 现在可正常使用
mysql -uroot -p
mysql root 密码是123 , 后续你需要导入数据库。现在已经进入mysql 环境状态了. exit 可直接退出 ,如下。
mysql> exit
Bye
hiterminal@test:/etc/mysql$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 95
Server version: 5.5.35-1ubuntu1 (Ubuntu)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
====》至于为什么出现这个 '/var/run/mysql/mysqld.sock',原因未知。
问题解决方法,
1. 先解决 你如下出现的安装包依赖项的问题
sudo apt-get autoclean
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get install libc6-dev-i386
2. 干净删除 现有的 mysql
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
3. 再重新安装
sudo apt-get install mysql-server
sudo apt-get install mysql-client
4. 重启 mysql 服务程序
sudo /etc/init.d/mysql restart
5. 现在可正常使用
mysql -uroot -p
0 0
- MySQL安装
- MySQL安装
- mysql安装
- mysql 安装
- 安装mysql
- Mysql安装
- mysql安装
- mysql安装
- mySQL安装
- mysql 安装
- Mysql安装
- 安装MySQL
- Mysql安装
- Mysql安装
- 安装MySQL
- MySQL 安装
- 安装MySQL
- Mysql安装
- fragment中弹出PopupWindow窗体,点击外界屏幕不消失问题解决
- numpy各函数简介之生成数组函数(Array creation routines)
- myeclipse下SSH整合环境搭建
- SVN和Git的比较
- 50. Pow(x, n)
- 安装mysql
- 观察者模式及Java实现例子
- Powershell check server patch status
- linux下mysql命令大全
- Makefile语法规则教程
- PAT 1023
- JS中国时间转化为标准时间 Thu Aug 22 2013 15:12:00 GMT+0800
- rsync + inotify 实现单向数据同步
- etcmy.cnf找不到