[root@sample ~]# yum -y install mysql-server [root@sample ~]# yum -y install php-mysql
[root@sample ~]#vim /etc/my.cnf 编辑MySQL的配置文件 [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package).
old_passwords=1
default-character-set = utf8
default-character-set = utf8
[root@sample ~]# chkconfig mysqld on
[root@sample ~]# chkconfig --list mysqld
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@sample ~]#/etc/rc.d/init.d/mysqld start
Initializing MySQL database: [ OK ] Starting MySQL: [ OK ]
grant all privileges on *.* to root@"%" identified by "password" with grant option; flush privileges;
vim /etc/mysql/my.cnf找到:
bind-address = 127.0.0.1改为:
bind-address = 0.0.0.0 #允许任意ip地址访问也可以指定IP地址。然后重启MySQL:
sudo /etc/init.d/mysqld restart
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有