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

流感疫情最新消息/厦门seo起梦网络科技

流感疫情最新消息,厦门seo起梦网络科技,南京手机网站制作,厂西建设厅网站# 查看有没有安装MySQL:dpkg -l | grep mysql# 安装MySQL:apt install mysql-server正在读取软件包列表... 完成正在分析软件包的依赖关系树正在读取状态信息... 完成将会同时安装下列软件:libaio1 libevent-core-2.1-6 libhtml-template-per…

# 查看有没有安装MySQL:

dpkg -l | grep mysql

# 安装MySQL:

apt install mysql-server

正在读取软件包列表... 完成

正在分析软件包的依赖关系树

正在读取状态信息... 完成

将会同时安装下列软件:

libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7

mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7

建议安装:

libipc-sharedcache-perl mailx tinyca

下列【新】软件包将被安装:

libaio1 libevent-core-2.1-6 libhtml-template-perl mysql-client-5.7

mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7

mysql-server-core-5.7

升级了 0 个软件包,新安装了 9 个软件包,要卸载 0 个软件包,有 237 个软件包未被升级。

需要下载 20.5 MB 的归档。

解压缩后会消耗 160 MB 的额外空间。

您希望继续执行吗? [Y/n]  y

安装完成登录

root@ubuntu:~# mysql -u root -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 2

Server version: 5.7.27-0ubuntu0.18.04.1 (Ubuntu)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

授权设置密码

mysql> grant all on *.* to root@'%' identified by 'root' with grant option;

Query OK, 0 rows affected, 1 warning (0.81 sec)

刷新权限

mysql> flush privileges;

Query OK, 0 rows affected (0.03 sec)

退出

mysql> exit

Bye

重新启动

root@ubuntu:~# systemctl restart mysql

远程登录设置

root@ubuntu:~# mysql -u root -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 2

Server version: 5.7.27-0ubuntu0.18.04.1 (Ubuntu)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

切换数据库

mysql> use mysql

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

设置host属性

mysql> update user set host = '%' where user = 'root';

ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'

报错可以忽略,可能已存在通过查询

mysql> select host from user where user='root';

修改配置文件

root@ubuntu:~# sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

找到bind 127.0.0.1 ::1 这一行将它注释掉

root@ubuntu:~# service mysql restart

完成

http://www.jmfq.cn/news/5040379.html

相关文章:

  • 网页浏览器如何放大/韶山seo快速排名
  • 用html做的网站步骤/武汉网站制作
  • 鸿科经纬教网店运营推广/长沙seo关键词
  • 宣传网站建设方案模板下载/360开户
  • 莱阳网站建设/排行榜123网
  • 苏州网络推广/怎么快速优化关键词排名
  • 整站网站模板/营销型网站案例
  • 靠谱网站建设/标题优化怎样选关键词
  • 青海企业网站建设/网站设计开发网站
  • 如何查找网站备案/北京已感染上千万人
  • 建个网站 做ib代理/seo专员是什么职位
  • 做网站下载那个数据库好/百度搜索大数据
  • 专门做衣服的网站/如何创建一个个人网站
  • 返利网站开发一般要多少钱/宁波网络优化seo
  • 南昌网站建设设计/网络营销试卷及答案
  • 做网站哪家/seo全网营销
  • 如何建一个简单的网站/网站建设公司排行榜
  • MEZZANINE wordpress/东莞网络优化哪家好
  • 阿里云wordpress帮助/关键词优化怎么优化
  • 培训网站建设方案模板下载/网络营销的特点包括
  • 在电脑上做网站的软件/上海百度seo点击软件
  • 快速网站建设/网络推广项目计划书
  • 网页qq登录保护怎么关/seo站长工具下载
  • 建设网站的企业发展历程/武汉关键词包年推广
  • 王爷到剧情介绍/哈尔滨seo优化
  • 普陀网站建设/成功的网络营销案例ppt
  • 中企动力客服电话/seo搜索优化公司排名
  • 建设网站广州/手机关键词seo排名优化
  • 做网站的多少钱/长沙百度快速排名优化
  • 成都网站开发 优帮云/杭州专业seo