宝塔服务器配置

Linux启动、停止宝塔

# 启动 
/etc/init.d/bt start
# 停止 
/etc/init.d/bt stop

MySQL5.6开启远程连接

修改MySQL的配置文件 /etc/mysql/my.cnf,找到 bind-address = 127.0.0.1,加上注释 #,保存退出, 重启mysq service mysql restart
进入 mysql> mysql -u root -p

# 方式一:修改表数据
mysql>update user set host = '%' where user = 'root'; 
mysql>flush privileges;  //刷新权限

# 方式二:执行授权语句GRANT  --  推荐
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; 
mysql>flush privileges;   //刷新权限

参考内容

posted @   opencoder  阅读(9)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2022-12-17 爱加密iOS混淆工具 ijiami-clang-tools 使用
2022-12-17 How to mute all audio sound in unity? Unity中怎么样关闭所有音效
2020-12-17 ‘A downloaded software component is corrupted and will not be used. ‘ while publish an iOS app to apple store via Xcode
点击右上角即可分享
微信分享提示