linux centOS 安装mysql
来源:互联网 发布:淘宝手机端设为首页 编辑:程序博客网 时间:2024/06/05 17:43
安装
1. #yum install mysql
2.在Terminal下输入rpm -q mysql 查询发现是mysql-server有没有没有安装 如果没有 mysqld 文件 也是没有安装mysql-server
3.没有的话Terminal下输入yum install mysql-server 安装mysql的server端,然后再输入service mysqld restart
设置root密码
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’;
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <输入新设的密码newpassword>
0 0
- Linux (centos) 安装 MySQL
- linux centOS 安装mysql
- linux(CentOS)mysql 安装
- Linux centos 安装mysql
- Linux CentOs安装MySql
- linux、centos安装mysql
- Linux centos安装mysql
- linux/centos 安装mysql
- 【mysql linux安装】Mysql centos安装教程
- linux centos yum安装mysql
- CentOS Linux下安装 mysql
- linux centos yum 安装 mysql
- Linux(CentOS 6.5)安装 mysql
- linux centOS 下安装mysql
- Linux Centos 6.6安装Mysql
- linux centos 安装mysql-5.6
- Linux Centos 6.6安装Mysql
- Linux Centos 6.6安装Mysql
- 使用基于注解的mybatis实现根据参数动态生成sql语句
- java类加载机制的过程
- org.hibernate.engine.jndi.JndiException:Error parsing JNDI name[foo]
- leetcode-Remove Nth Node From End of List
- hdu 1501 Zipper 记忆化搜索
- linux centOS 安装mysql
- PHP学习
- 内核模块参数
- 听歌识曲音乐检索
- 日拱一卒(七)
- C语言之指针浅谈
- python安装模块
- Ubuntu下修改MAC地址
- 线上性能问题初步排查方法