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

网站开发的方法和步骤做网站前期预算

网站开发的方法和步骤,做网站前期预算,html5做网站的总结,摄影大赛官网阿里云百科分享在阿里云Linux服务器上部署MySQL数据库流程#xff0c;MySQL是一个关系型数据库管理系统#xff0c;常用于LAMP和LNMP等网站场景中。本教程介绍如何在Linux系统ECS实例上安装、配置以及远程访问MySQL数据库。 目录 背景信息 Alibaba Cloud Linux 2/3、CentO…阿里云百科分享在阿里云Linux服务器上部署MySQL数据库流程MySQL是一个关系型数据库管理系统常用于LAMP和LNMP等网站场景中。本教程介绍如何在Linux系统ECS实例上安装、配置以及远程访问MySQL数据库。 目录 背景信息 Alibaba Cloud Linux 2/3、CentOS 7.x 步骤一安装MySQL 步骤二配置MySQL 步骤三远程访问MySQL数据库 背景信息 本教程中的MySQL版本仅为示例您在实际操作时MySQL的版本可能因软件源的更新而有所不同。关于MySQL相关安装路径说明如下 配置文件/etc/my.cnf 数据存储/var/lib/mysql 命令文件/usr/bin和/usr/sbin ECS云服务器aliyunbaike.com/go/ecs 操作系统CentOS 7.x、Alibaba Cloud Linux 2、Alibaba Cloud Linux 3。 实例安全组的入方向规则已放行22、80、443、3306端口。具体操作请参见添加安全组规则。 Alibaba Cloud Linux 2/3、CentOS 7.x 步骤一安装MySQL 远程连接ECS实例。 具体操作请参见使用VNC登录实例。 运行以下命令更新YUM源。 sudo rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm 运行以下命令安装MySQL。 sudo yum -y install mysql-community-server --enablerepomysql80-community --nogpgcheck 运行以下命令查看MySQL版本号。 mysql -V 返回结果如下表示MySQL安装成功。 mysql Ver 8.0.33 for Linux on x86_64 (MySQL Community Server - GPL) 步骤二配置MySQL 运行以下命令启动并设置开机自启动MySQL服务。 sudo systemctl start mysqld sudo systemctl enable mysqld 运行以下命令获取并记录root用户的初始密码。 sudo grep temporary password /var/log/mysqld.log 执行​命令结果示例如下。 2022-02-14T09:27:18.470008Z 6 [Note] [MY-010454] [Server] A temporary password is generated for rootlocalhost: r_Vf2wyu_vI 说明  示例末尾的r_Vf2wyu_vI为初始密码后续在对MySQL进行安全性配置时需要使用该初始密码。 运行以下命令对MySQL进行安全性配置。 sudo mysql_secure_installation 根据提示信息重置MySQL数据库root用户的密码。 说明 在输入密码时系统为了最大限度的保证数据安全命令行将不做任何回显。您只需要输入正确的密码信息然后按Enter键即可。 Enter password for user root: #输入已获取的root用户初始密码The existing password for the user account root has expired. Please set a new password.New password: #输入新的MySQL密码Re-enter new password: #重复输入新的MySQL密码 The validate_password component is installed on the server. The subsequent steps will run with the existing configuration of the component. Using existing password for root. Change the password for root ? ((Press y|Y for Yes, any other key for No) :Y #输入Y选择更新MySQL密码。您也可以输入N不再更新MySQL密码。New password: #输入新的MySQL密码Re-enter new password: #重复输入新的MySQL密码Estimated strength of the password: 100 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) :Y #输入Y确认使用已设置的密码。 根据提示信息删除匿名用户。 By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.Remove anonymous users? (Press y|Y for Yes, any other key for No) :Y #输入Y删除MySQL默认的匿名用户。 Success. 禁止root账号远程登录。 Normally, root should only be allowed to connect from localhost. This ensures that someone cannot guess at the root password from the network.Disallow root login remotely? (Press y|Y for Yes, any other key for No) :Y #输入Y禁止root远程登录。 Success. 删除test库以及对test库的访问权限。 By default, MySQL comes with a database named test that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.Remove test database and access to it? (Press y|Y for Yes, any other key for No) :Y #输入Y删除test库以及对test库的访问权限。- Dropping test database... Success.- Removing privileges on test database... Success. 重新加载授权表。 Reloading the privilege tables will ensure that all changes made so far will take effect immediately.Reload privilege tables now? (Press y|Y for Yes, any other key for No) :Y #输入Y重新加载授权表。 Success.All done! 步骤三远程访问MySQL数据库 建议您使用非root账号远程登录MySQL数据库。下文示例中将创建新的MySQL用户账户用于远程访问MySQL。 远程连接ECS实例。 关于连接方式的介绍请参见连接方式概述。 运行以下命令后输入root用户的密码登录MySQL。 sudo mysql -uroot -p 依次运行以下命令创建远程登录MySQL的账号并允许远程主机使用该账号访问MySQL。 本示例账号为dmsTest、密码为Ecs123****。 重要  实际创建账号时需将示例密码Ecs123****更换为符合要求的密码并妥善保存。密码要求长度为8至30个字符必须同时包含大小写英文字母、数字和特殊符号。可以使用以下特殊符号 () ~!#$%^*-|{}[]:;‘,.?/ #创建数据库用户dmsTest,并授予远程连接权限。 create user dmsTest% identified by Ecs123****; #为dmsTest用户授权数据库所有权限。 grant all privileges on *.* to dmsTest%; #刷新权限。 flush privileges; 执行以下命令退出数据库。 exit 使用dmsTest账号远程登录MySQL。 推荐您可以通过阿里云提供的数据管理服务DMSData Management Service来远程访问MySQL数据库。具体操作请参见云数据库录入。 您可以通过MySQL客户端远程登录MySQL进行测试。例如MySQL Workbench、Navicat。 本文源自阿里云官方文档。
http://www.yutouwan.com/news/43719/

相关文章:

  • 中山移动网站设计做网站有年费吗
  • 开发h5网站开发廊坊百度快照优化
  • 河北省老区建设促进会网站定制高端网站
  • html5做静态网站制作h5
  • 做热图的在线网站手机 电脑 同步 wordpress
  • 上海创新网站建设百度一下就一个
  • 摄影比赛投稿网站常州自助建站seo
  • 网站热图分析微信公众号里的小网站怎么做的
  • 安徽省建设质量安全协会网站手机微信一体网站建设
  • 前端开发做网站吗保定市住房保障和城乡建设局网站
  • 荆州网站建设推荐官方网站开发用什么语言
  • 企业网站服务器租用hanchengkeji杭州网站建设
  • 做微信文章的网站电商网站可以用dw做
  • 中山大学精品课程网站手机网页设计尺寸
  • 顶部固定网站模板金阊企业建设网站公司
  • 给企业建设网站的流程图wordpress怎么设置伪静态页面
  • 网站开发财务预算成都百度小程序开发
  • 加强学校网站建设的必要性微信网站设计尺寸
  • wordpress模板网站导航创业做网站APP开发
  • 网站备案号在哪里看网站logo在哪里修改
  • 什么是灰色网站网站建设和维护费用
  • 关于公司网站建设情况的汇报网站建设公司网
  • 网站建设与推广推荐建设网站细节
  • 网站如何paypal支付阿里云自助建站和华为云自助建站
  • 试用网站 建站做网站用php转html
  • 做个游戏网站多少钱代发货网站建设
  • 当当网站建设的目标703804温州论坛
  • wordpress 导航站模板下载滁州建设网站公司
  • 网站建设制作设计营销 上海域名被墙查询检测
  • 长沙口碑好的做网站公司哪家好亚马逊跨境电商怎么开店