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

网站空间的参数wordpress functions.php

网站空间的参数,wordpress functions.php,开网店3个月来亏了10万,手游app平台推广微信xiala5目录 一、安装MySQL 二、配置MySQL 三、远程访问MySQL数据库 四、Navicat本地连接远程MySQL 五、宝塔连接MySQL 如果你是使用宝塔安装的MySQL请绕过#xff0c;以下是通过命令行模式#xff08;手动部署#xff09;进行安装、配置及运行。 安装#xff1a;MySQL8.0 …目录 一、安装MySQL 二、配置MySQL 三、远程访问MySQL数据库 四、Navicat本地连接远程MySQL 五、宝塔连接MySQL 如果你是使用宝塔安装的MySQL请绕过以下是通过命令行模式手动部署进行安装、配置及运行。 安装MySQL8.0   其他版本请参阅 MySQL :: MySQL Documentation 操作系统CentOS 7.x 安全组放行实例安全组入方向放行22、80、443、3306端口。 数据库连接工具Navicat Premium SSH连接工具FinalShell 先来看看宝塔未安装之前的界面 导出你本地的数据库表信息备用 右键选中本地数据库表 midway_db 转储SQL文件 结构和数据 导出 midway_db.sql 文件 一、安装MySQL 1、通过SSH连接 这里使用FinalShell工具该工具的安装和使用可以翻看我之前写的文章。 2、下载MySQL 8.0版本 sudo rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm 3、安装MySQL sudo rpm -Uvh https://mirrors.aliyun.com/alinux/3/updates/x86_64/Packages/compat-openssl10-1.0.2o-4.0.1.al8.x86_64.rpm 4、查看MySQL版本号 mysql -V 返回结果如下表示MySQL安装成功。 mysql  Ver 8.0.37 for Linux on x86_64 (MySQL Community Server - GPL) 二、配置MySQL 1、启动并设置开机自启动MySQL服务 sudo systemctl start mysqld sudo systemctl enable mysqld 2、获取并记录root用户的初始密码 sudo grep temporary password /var/log/mysqld.log 执行命令结果如下 2024-05-30T14:29:23.582517Z 6 [Note] [MY-010454] [Server] A temporary password is generated for rootlocalhost: M1cK)Ethf_l ❓ 说明 示例末尾的 M1cK)Ethf_l 为初始密码后续在对MySQL进行安全性配置时需要使用该初始密码。 3、对MySQL进行安全性配置 sudo mysql_secure_installation a. 根据提示信息重置MySQL数据库root用户的密码 ❓ 说明 在输入密码时系统为了最大限度地保证数据安全命令行将不做任何回显。您只需要输入正确的密码信息然后按 Enter 键即可。 Securing the MySQL server deployment.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.Estimated strength of the password: 100 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确认使用已设置的密码。b. 根据提示信息删除匿名用户 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.c. 禁止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.d. 删除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.e. 重新加载授权表 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。 1、输入root用户的密码登录MySQL sudo mysql -uroot -p 2、依次运行以下命令创建远程登录MySQL的账号并允许远程主机使用该账号访问MySQL。 本示例账号为Vinca、密码为Ecs123****。 ❗ 重要 实际创建账号时需将示例密码Ecs123****更换为符合要求的密码并妥善保存。密码要求长度为8至30个字符必须同时包含大小写英文字母、数字和特殊符号。可以使用以下特殊符号 () ~!#$%^*-|{}[]:;‘,.?/ #创建数据库用户Vinca,并授予远程连接权限。 create user Vinca% identified by Ecs123****; #为Vinca用户授权数据库所有权限。 grant all privileges on *.* to Vinca%; #刷新权限。 flush privileges; 3、退出数据库 exit 4、使用Vinca账号远程登录MySQL 您可以通过MySQL客户端远程登录MySQL进行测试。例如MySQL Workbench、Navicat。 四、Navicat本地连接远程MySQL a. 输入刚刚创建的非root账号进行远程连接MySQL 连接失败请查看ECS实例安全组是否放行对应端口号如3306及系统防火墙请参阅http://t.csdnimg.cn/7w4wW b.新建数据库 如果你不清楚字符集和排序规则请参考你原先本地的数据库配置 c. 右键 midway_db 数据库选择“运行SQL文件” d. 选择最开始让你导出的 midway_db.sql 文件点击开始 e. vinca_ecs数据库 右键刷新 midawy_db数据表 右键刷新 数据和结构就同步过去了。 五、宝塔连接MySQL a. 输入刚刚创建的非root账号进行远程连接MySQL b. 如果连接成功如图示 c. 结合我们刚刚本地的Navicat添加了vinca_ecs数据库我们这里就直接同步不过多赘述。 完
http://www.pierceye.com/news/67670/

相关文章:

  • 建设国家地质公园网站主要功能安庆市住房和建设厅网站
  • 公司 网站源码桂林市网站建设
  • 东莞定制网站建设淘宝直播要先建设个网站吗
  • 新站优化案例建设公司需要网站吗
  • 免费制作简历app企业怎么做好网站优化
  • 长春建站网站模板互联网网站开发服务合同
  • 程序员做网站外快制作小程序代码
  • 山东聊城网站建设做网站网站需要多少钱
  • 口碑好门户网站开发建设一个普通的网站需要多少钱
  • 不开网店怎么做淘宝网站网站建设在整体布局有哪些要求
  • 怎样做营销型网站推广pptwordpress手机适配
  • 贵州省铜仁市城乡建设局网站适合翻译做兼职的网站
  • 网页设计与网站建设在线作业答案西安seo和网络推广
  • php网站开发职责河南建设人才信息网
  • 学校网站建设合同aso关键词优化计划
  • 中山网页建站模板建网页要钱吗
  • 帝国cms网站模板网站开发前台代码和后台代码
  • 江苏省建设局网站首页网友
  • 网站建设品牌公司排名免费教做面食的网站
  • wordpress风格济南seo优化公司助力排名
  • 二手图书交易网站建设企业网站制作步骤
  • edu网站一般谁做的wordpress 访问空白
  • 陈塘庄做网站公司wordpress 网站建设中
  • 转转假网站怎么做国外优秀的网站建设公司
  • 专业做租赁的平台网站有哪些wordpress主题git下载失败
  • 设计企业网站六安公共招聘网
  • 公司网站建设的项目工作分解结构铜仁建设集团招聘信息网站
  • 优秀手机网站模板图片网站建设有哪些公司好
  • 蒲城网站建设物流企业网站建设特色
  • 网站 收费玉林市建设工程交易中心网站