当前位置: 首页 > wzjs >正文

东莞专业设计网站知晓程序网站怎么做

东莞专业设计网站,知晓程序网站怎么做,公司网站建设报告,太原网站域名开发1.开发背景开发项目需要使用到数据库,相对于轻量级的 SQLite,MySql 相对复杂一下,但是可以远程访问,还是比较舒服的。2.开发需求Ubuntu 安装 MySql 服务端,Window 客户端访问 Ubuntu 数据库。3.开发环境Ubuntu20.04 W…

1.开发背景

        开发项目需要使用到数据库,相对于轻量级的 SQLite,MySql 相对复杂一下,但是可以远程访问,还是比较舒服的。

2.开发需求

        Ubuntu 安装 MySql 服务端,Window 客户端访问 Ubuntu 数据库。

3.开发环境

        Ubuntu20.04 + Window10

4.实现步骤

4.1 安装 MySql

4.1.1 安装软件
# Ubuntu MySQl数据库服务端
sudo apt install mysql-server
4.1.2 查看状态
# 查看状态
sudo systemctl status mysql
4.1.3 启停 MySql
# 启动 mySql
sudo systemctl start mysql# 停止 mySql
sudo systemctl stop mysql
4.1.4 设置自启动
# 开机自启动
sudo systemctl enable mysql

4.2 配置 MySql

sudo mysql_secure_installation
secure enough. Would you like to setup VALIDATE PASSWORD component?Press y|Y for Yes, any other key for No: nRemove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y- Dropping test database...
Success.Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.All done!

        截取关键配置,除了秘钥强保护不需要(测试,为了方便为主),其他的都是默认,根据自己需求配置即可。

4.3 登录 MySql

# root 用户进入数据库 测试机默认密码也是 root
sudo mysql -u root -p

4.4 远程访问 MySql

4.4.1 添加用户

        尽量不通过 root 访问,这里创建用户 yangjinghui

# 创建用户 yangjinghui 密码 root
CREATE USER 'yangjinghui'@'%' IDENTIFIED WITH mysql_native_password BY 'root';# 查看用户信息
SELECT user, host FROM mysql.user;# 用户授权 所有数据库
GRANT ALL PRIVILEGES ON *.* TO 'yangjinghui'@'%';# 用户授权 个别数据库
#GRANT ALL PRIVILEGES ON mydb.* TO 'yangjinghui'@'%';# 权限生效
FLUSH PRIVILEGES;
4.4.2 联网配置
# 修改配置 bind-address 修改 禁用 ssl
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
#bind-address = 127.0.0.1
bind-address = 0.0.0.0
ssl=0# 防火墙通道
sudo ufw allow 3306# 重启 mysql
sudo systemctl restart mysql
4.4.3 Window 访问 MySql


文章转载自:

http://vI9Gaxiq.xpwdf.cn
http://FHitA8d6.xpwdf.cn
http://FUje2sQc.xpwdf.cn
http://lXlwkrAw.xpwdf.cn
http://s90Ai6RX.xpwdf.cn
http://dxAGGTDX.xpwdf.cn
http://KU5zQMJo.xpwdf.cn
http://6wPe6F6Z.xpwdf.cn
http://5EeQ3RVR.xpwdf.cn
http://kA1hRp4E.xpwdf.cn
http://Llir246p.xpwdf.cn
http://0tLGleCP.xpwdf.cn
http://xXrwA4Fp.xpwdf.cn
http://ef6wMbBq.xpwdf.cn
http://MlwrWPX6.xpwdf.cn
http://Zj32l9DV.xpwdf.cn
http://5NFMhS6O.xpwdf.cn
http://1sDbpYSN.xpwdf.cn
http://1gdLoOSG.xpwdf.cn
http://tXyniMzh.xpwdf.cn
http://aHz3JGLn.xpwdf.cn
http://fnlp16co.xpwdf.cn
http://dTKshCin.xpwdf.cn
http://dclSAgje.xpwdf.cn
http://vxgTgpoc.xpwdf.cn
http://ADSIk2A7.xpwdf.cn
http://H90kSkqy.xpwdf.cn
http://3WNwG5n3.xpwdf.cn
http://Koit9piZ.xpwdf.cn
http://5MdcGBrM.xpwdf.cn
http://www.dtcms.com/wzjs/708818.html

相关文章:

  • 江西南昌网站建设公司哪家好关于公司网站建设的请示
  • 公司做的网站如何开启伪静态ui在线设计网站
  • 做类似昵图网网站作风建设提升年活动网站
  • 学校网站群建设方案星月教你做网站的文档
  • 赣州网站推广哪家最专业重庆渝兴建设有限公司网站
  • 广州省建设监理协会网站深圳防疫最新进展
  • 福州网站制作好的企业网站建设盒子怎么搭建
  • 摄影网站建立网站建设必要性和意义
  • 高密市建设局网站表白网站在线制作软件
  • 电影资源网站怎么做的手表之家官网
  • 福州做网站优化电商运营培训班
  • 北京网站建设公司网站优化资讯百科网站推广
  • 建设一个网站app需要多少钱wordpress的搭建教程 pdf
  • 网站域名优势自己建设个人网站要花费多少
  • 苏州建设局统计网站网易企业邮箱密码忘记了怎么找回密码
  • 网站排名套餐互联网站管理工作细则
  • 秀网站模板小游戏入口免费游戏
  • 电商网站设计论文图片加文字在线制作
  • 专业做消防工程师的正规网站网店推广有哪些
  • 合肥高端网站建设费用安卓开发工具下载
  • 哪个网站学习做辅助 天堂资源官网在线资源
  • 网站风格配置怎么做网站关闭模板
  • iis7.5网站配置网络服务费要交印花税吗
  • 网站多级栏目wordpress过滤敏感
  • 天水市建设银行官方网站网络营销品牌策划优化
  • 河南网站排名优化价格wordpress恢复密码
  • 湛江模板建站多少钱英文网站 常用字体
  • 无锡专业网站wp网站做企业站好不好
  • 平台型网站如何推广北京电商平台网站建设
  • 如何发布网站到域名电子商务平台的功能有哪些