Linux centos 安装 mysql 5.6

时间:2019-03-27 16:39:46   收藏:0   阅读:488

一、mysql下载

  1、方式一(简单粗暴)

  2、方式二(官方下载)

 二、安装mysql(注:大佬飞过,如有不好的地方欢迎留言

  1、解压

  2、添加系统mysql组与用户mysql

  3、创建mysql数据库数据目录并指向

三、设置mysql

  1. 添加服务器启动:cp support-files/mysql.server /etc/init.d/mysqld
  2. 启动mysql:service mysqld start
  3. 修改root密码:./bin/mysqladmin -u root -h127.0.0.1 password ‘123456‘
  4. 进入mysql:./bin/mysql -uroot -h127.0.0.1 -p123456
  5. linux 就可以正常操作mysql了,不过远程工具连接可以会出现如下问题

 

遇到的问题  

  1、FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:
     Data::Dumper

   解决方法:yum -y install autoconf

  2、Installing MySQL system tables.../home/mysql//bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

   解决方法:yum install libaio

原文:https://www.cnblogs.com/chuyi-/p/10595549.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!