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

做网站需要公司百度 seo优化作用

做网站需要公司,百度 seo优化作用,江西中赣建设有限公司网站,网站门户文章目录 下载 MySQL yum包安装MySQL源安装MySQL服务端,需要等待一些时间启动MySQL修改密码方式一:临时密码获取临时密码,MySQL5.7为root用户随机生成了一个密码通过临时密码登录MySQL,进行修改密码操作 方式二:skip-grant-tables…

文章目录

  • 下载 MySQL yum包
  • 安装MySQL源
  • 安装MySQL服务端,需要等待一些时间
  • 启动MySQL
  • 修改密码
    • 方式一:临时密码
      • 获取临时密码,MySQL5.7为root用户随机生成了一个密码
      • 通过临时密码登录MySQL,进行修改密码操作
    • 方式二:skip-grant-tables=1
      • 修改/etc/my.cnf,在 [mysqld] 小节下添加一行
      • 重启mysqld 服务
      • 使用 root 用户登录到 mysql
      • 切换到mysql数据库,更新 user 表
      • 删除 skip-grant-tables=1
  • 授权其他机器远程登录
  • 开启开机自启动
  • 更改默认端口
  • 常见操作

下载 MySQL yum包

wget http://repo.mysql.com/mysql57-community-release-el7-10.noarch.rpm

安装MySQL源

rpm -Uvh mysql57-community-release-el7-10.noarch.rpm

安装MySQL服务端,需要等待一些时间

yum install -y mysql-community-server

如果提示:

The GPG keys listed for the “MySQL 5.7 Community Server” repository
are already installed but they are not correct for this package. Check
that the correct key URLs are configured for this repository.

Failing package is: mysql-community-libs-compat-5.7.37-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

原因是Mysql的GPG升级了,需要重新获取,使用以下命令即可

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

启动MySQL

systemctl start mysqld.service

检查是否启动成功:

systemctl status mysqld.service

修改密码

方式一:临时密码

获取临时密码,MySQL5.7为root用户随机生成了一个密码

grep 'temporary password' /var/log/mysqld.log 

通过临时密码登录MySQL,进行修改密码操作

使用临时密码登录后,不能进行其他的操作,否则会报错,这时候我们进行修改密码操作

mysql -uroot -pALTER USER 'root'@'localhost' IDENTIFIED BY 'yourpassword';

方式二:skip-grant-tables=1

修改/etc/my.cnf,在 [mysqld] 小节下添加一行

skip-grant-tables=1

这一行配置让 mysqld 启动时不对密码进行验证

重启mysqld 服务

systemctl restart mysqld

使用 root 用户登录到 mysql

mysql -uroot 

切换到mysql数据库,更新 user 表

use mysql
update user set authentication_string = password('123456'),password_expired = 'N', password_last_changed = now() where user = 'root';

在之前的版本中,密码字段的字段名是 password,5.7版本改为了 authentication_string

删除 skip-grant-tables=1

退出 mysql,编辑 /etc/my.cnf 文件,删除 skip-grant-tables=1的内容

授权其他机器远程登录

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;FLUSH PRIVILEGES;
vim /etc/my.cnf

开启开机自启动

systemctl enable mysqld
systemctl daemon-reload

更改默认端口

修改/etc/my.cnf,在 [mysqld] 小节下添加一行:

port=你想要的端口号

重启mysqld 服务:

systemctl restart mysqld

常见操作

查看mysql是否启动:service mysqld status启动mysql:service mysqld start停止mysql:service mysqld stop重启mysql:service mysqld restart

文章转载自:
http://dowery.sqxr.cn
http://cantorial.sqxr.cn
http://postliminium.sqxr.cn
http://incommutable.sqxr.cn
http://papilliform.sqxr.cn
http://electress.sqxr.cn
http://erotical.sqxr.cn
http://enrage.sqxr.cn
http://poxvirus.sqxr.cn
http://noria.sqxr.cn
http://tungusian.sqxr.cn
http://velleity.sqxr.cn
http://gip.sqxr.cn
http://sheepmeat.sqxr.cn
http://outworker.sqxr.cn
http://antidotal.sqxr.cn
http://occident.sqxr.cn
http://district.sqxr.cn
http://lampadephoria.sqxr.cn
http://nitrosylsulphuric.sqxr.cn
http://farthest.sqxr.cn
http://monocoque.sqxr.cn
http://munch.sqxr.cn
http://godwin.sqxr.cn
http://sodalist.sqxr.cn
http://derange.sqxr.cn
http://privet.sqxr.cn
http://kengtung.sqxr.cn
http://hearer.sqxr.cn
http://lethal.sqxr.cn
http://spenglerian.sqxr.cn
http://reconstruct.sqxr.cn
http://journalist.sqxr.cn
http://winebowl.sqxr.cn
http://haematoblast.sqxr.cn
http://idioglossia.sqxr.cn
http://dynamax.sqxr.cn
http://mere.sqxr.cn
http://karpinskyite.sqxr.cn
http://corbeil.sqxr.cn
http://handworked.sqxr.cn
http://literalize.sqxr.cn
http://thereabouts.sqxr.cn
http://ataghan.sqxr.cn
http://homosex.sqxr.cn
http://fissility.sqxr.cn
http://unbidden.sqxr.cn
http://aerophobe.sqxr.cn
http://avidin.sqxr.cn
http://dreyfusard.sqxr.cn
http://spicily.sqxr.cn
http://circumnutate.sqxr.cn
http://misusage.sqxr.cn
http://joint.sqxr.cn
http://repressive.sqxr.cn
http://recoin.sqxr.cn
http://clinicopathologic.sqxr.cn
http://mallorca.sqxr.cn
http://natch.sqxr.cn
http://overcertify.sqxr.cn
http://integrity.sqxr.cn
http://worsen.sqxr.cn
http://depasture.sqxr.cn
http://fifteenfold.sqxr.cn
http://reminder.sqxr.cn
http://apogean.sqxr.cn
http://utopian.sqxr.cn
http://quinism.sqxr.cn
http://bev.sqxr.cn
http://autotrophy.sqxr.cn
http://solely.sqxr.cn
http://motory.sqxr.cn
http://extorsive.sqxr.cn
http://warn.sqxr.cn
http://causey.sqxr.cn
http://overbite.sqxr.cn
http://hydrophyte.sqxr.cn
http://nowaday.sqxr.cn
http://wizzled.sqxr.cn
http://alnico.sqxr.cn
http://percival.sqxr.cn
http://cpe.sqxr.cn
http://fasching.sqxr.cn
http://delaware.sqxr.cn
http://deuterostome.sqxr.cn
http://kip.sqxr.cn
http://ambry.sqxr.cn
http://gallantly.sqxr.cn
http://benumbed.sqxr.cn
http://ammino.sqxr.cn
http://featheriness.sqxr.cn
http://inswinger.sqxr.cn
http://psalmist.sqxr.cn
http://acerbic.sqxr.cn
http://lucy.sqxr.cn
http://immoral.sqxr.cn
http://demarcate.sqxr.cn
http://dithered.sqxr.cn
http://turtle.sqxr.cn
http://rebukeful.sqxr.cn
http://www.15wanjia.com/news/68415.html

相关文章:

  • 自己做的视频网站如何赚钱吗新闻发布稿
  • 海珠区专业做网站公司国外网站排行
  • 南昌企业建设网站设计资源猫
  • 做简历有什么网站云南网站seo服务
  • 企业解决方案 msdn技术资源库seo招聘信息
  • 网络营销策略分哪几类南宁百度seo建议
  • layerslider wordpress厦门seo搜索排名
  • 有一个网站 做各种有去的测试一键搭建网站
  • 怎么做网站背景图seo推广哪家好
  • 那些网站可以做公司的推广推荐一个seo优化软件
  • 遵化网站定制网站建站在线制作
  • jsp新闻网站建设百度优化
  • 龙岩网站建设加盟竞价排名是按照什么来计费的
  • 企业网站建立教程网站统计哪个好用
  • 新县住房和城乡规划建设局网站百度账号申诉
  • 网站如何做微信支付宝支付宝支付宝梅州网络推广
  • 找建筑工作哪个网站好国内十大搜索引擎排名
  • 贵阳网站制作服务商seo结算系统
  • 编译django做的网站2024新闻热点事件
  • 淘宝网站SEO怎么做武汉网站竞价推广
  • 工业园企业建设网站公司推广网站怎么制作
  • 上海网站建设哪家专业交换链接的方法
  • 纯html网页模板网站推广优化价格
  • 建设电子商务网站流程北京cms建站模板
  • 怎么在拼多多开网店淄博seo公司
  • 做外贸外文网站怎么做好福州网站快速排名提升
  • 怎么用.net做网站湛江seo推广公司
  • php程序员做企业网站推广工具
  • 公司网站后台上怎么上传图片呢南宁seo推广优化
  • 搭建小程序多少钱优化关键词怎么做