源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Centos 6.4源码安装mysql-5.6.28.tar.gz教程

  • 时间:2020-02-15 01:04 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Centos 6.4源码安装mysql-5.6.28.tar.gz教程
mysql5.6.28安装教程分享 1、在安装MySQL-5.6.28.tar.gz前,先[b]安装编译环境 [/b]
[url=http://www.1sucai.cn/article/102820.htm]http://www.1sucai.cn/article/102820.htm[/url] 使用root用户登录mysql:
#要输入的密码,就是上面设置的密码 
[root@VM_13_53_centos support-files]# mysql -uroot -p 
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 3 
Server version: 5.6.28 Source distribution 
 
Copyright (c) 2000, 2015, 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> 
[b]若要设置root用户可以远程访问,执行 [/b]
#将下面的'password'改成自己的密码 
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; 
mysql> flush privileges; 
9、[b]关闭防火墙,[/b]防止远程连接失败  1)重启后生效 开启: chkconfig iptables on    关闭: chkconfig iptables off      2)立即生效 开启: service iptables start    关闭: service iptables stop     3)开放3306端口
vi /etc/sysconfig/iptables 
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT 
service iptables restart 
10、[b]改变编码,防止乱码[/b] SHOW VARIABLES LIKE 'character%'  修改mysql的、etc/my.cnf文件
[client] 
default-character-set=utf8 
 
[mysqld] 
character-set-server=utf8 
 
[mysql] 
default-character-set=utf8 
11、可能出现的[b]错误    [/b][b]问题1:[/b]Starting MySQL..The server quit without updating PID file ([FAILED]/mysql/Server03.mylinux.com.pid).     解决:     修改/etc/my.cnf  添加socket的配置  [b]问题2:[/b]ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)     解决:     新建一个链接或在mysql中加入-S参数,直接指出mysql.sock位置。    
ln -s /usr/local/mysql/data/mysql.sock /tmp/mysql.sock  
/usr/local/mysql/bin/mysql -u root -S /usr/local/mysql/data/mysql.sock 

12、参考的[b]博客文章 [/b]       1、[url=http://www.1sucai.cn/article/102799.htm]http://www.1sucai.cn/article/102799.htm[/url]       2、[url=http://www.1sucai.cn/article/102807.htm]http://www.1sucai.cn/article/102807.htm[/url] 13、Mysql的下载:[url=https://pan.baidu.com/s/1jHXOzMe]https://pan.baidu.com/s/1jHXOzMe[/url] 精彩专题分享:[url=http://www.1sucai.cn/Special/832.htm]mysql不同版本安装教程[/url] [url=http://www.1sucai.cn/Special/863.htm]mysql5.7各版本安装教程[/url] [url=http://www.1sucai.cn/Special/914.htm]mysql5.6各版本安装教程[/url] 以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程素材网。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部