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

外贸三种语言网站建设/广西百度seo

外贸三种语言网站建设,广西百度seo,门户网站代做,网上网城网站1、下载安装包进入mysql官网,Download MySQL Community Server 安装系统为centos6.5_64位 选择 Linux - Generic (glibc 2.5) (x86, 64-bit), Compressed TAR Archive 进行下载。2. 解压Tar包,更改所属的组和用户[rootiZ23tp~]# cd /usr/local/[rootiZ23tp local]#…

1、下载安装包

进入mysql官网,Download MySQL Community Server  安装系统为centos6.5_64位 选择 Linux - Generic (glibc 2.5) (x86, 64-bit), Compressed TAR Archive 进行下载。

2. 解压Tar包,更改所属的组和用户

[root@iZ23tp~]# cd /usr/local/

[root@iZ23tp local]# tar -xvf  mysql-5.7.14-linux-glibc2.5-x86_64.tar.gz

[root@iZ23tp local]# mv /usr/local/mysql-5.7.14-linux-glibc2.5-x86_64  /usr/local/mysql

[root@iZ23tp local]chown -R mysql:mysql mysql

3. 安装和初始化数据库

修改vi /etc/my.cnf 文件 [mysqld] basedir=/usr/local/mysql/   datadir=/usr/local/mysql/data

[root@iZ23tp mysql]# bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/

添加开机启动:执行命令cp support-files/mysql.server /etc/init.d/mysql

4. 启动mysql服务

service mysql  start

[root@iZ23tp bin]# ./mysql -u root -p

Enter password:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

修改 /etc/my.cnf 文件  socket = /tmp/mysql.sock

重启mysql服务 service mysql restart

注:mysql5.7开始,会生成一个初始化密码。

[root@iZ23tp bin]# cat /root/.mysql_secret

# Password set for user 'root@localhost' at 2016-08-14 20:46:13

JDGRwL?s/r4v

重新登录

[root@iZ23tp bin]# ./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.14

Copyright (c) 2000, 2016, 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> show databases

-> ;

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

mysql> set password = password("123456");

4.远程连接

为了安全,默认是不允许mysql本机以外的机器访问mysql数据库服务,因此需要重新授权root

mysql> GRANT ALL PRIVILEGES ON *.* TO root@'%' identified by '123456';

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

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

至此mysql5.7 安装成功

Ubuntu 16.04 安装mysql并设置远程访问

step1、安装mysql并设置root帐号密码

apt-get install mysql-server mysql-client libmysqlclient-dev

6e03ec5f4c5485baab3574a21c2ce379.png

备注:可能出现无法安装情况,可尝试apt-get update

step2、查看安装完成情况

netstat -tap | grep mysql

step3、设置mysql远程访问

vi /etc/mysql/mysql.conf.d/mysqld.cnf  注释bind-address = 127.0.0.1

mysql -uroot -proot 使用root帐号登录mysql给test用户设置权限

grant all on *.* to test@'%' identified by 'ts123' with grant option;

flush privileges;

step4、重启mysql

/etc/init.d/mysql restart 或 service mysql restart

http://www.lbrq.cn/news/1063009.html

相关文章:

  • 网站的布局怎么做/网站百度关键词优化
  • 东莞做网站服务商/seo是指什么
  • 网站问卷调查系统怎么做/在百度上怎么发布广告
  • wordpress 404页面模板/毕节地seo
  • 营销型网站的价格/企业培训平台
  • 如何建网站教程视频/web前端培训费用大概多少
  • 怎么在建设银行网站更新身份证/百度关键词首页排名
  • 盘石做的网站/网络营销属于什么专业类型
  • 高校校园网站建设评比自评/福州网站建设
  • HTML网站制作设计/拼多多代运营收费标准
  • 廊坊网站建设冀icp备/爱站小工具计算器
  • 专业建设网站企业/友情链接交换的作用在于
  • 网站备案查询中心/营销推广app
  • 余姚公司网站建设/宁波网站建设制作报价
  • 江宁做网站价格/软文街
  • 湛江网站建设推广/福州seo公司
  • 网商网站怎么做/网站你应该明白我的意思吗
  • 网站规划图/线上营销工具
  • b2c网络购物系统/seo推广任务小结
  • 深圳定制网站制作厂家/网络推广服务合同范本
  • 怎么做网站推广知乎/百度企业查询
  • 青岛网站优化公司/百度认证中心
  • 一个好的网站怎样布局/域名申请的流程
  • 网站建设 分类/哈尔滨seo和网络推广
  • 单位网站建设/品牌策划案
  • 建设部网站备案/北京百度竞价
  • 石家庄网络营销哪家好做/深圳最好的外贸seo培训
  • 网站建设需要哪些基础/自助建站系统个人网站
  • 网页界面设计ppt/汕头seo推广
  • 外包公司做网站有哪些内容/搜索广告优化
  • Occ3D: A Large-Scale 3D Occupancy Prediction Benchmark for Autonomous Driving
  • ENSP防火墙安全策略简单案例
  • C语言线程同步详解(互斥锁、信号量、条件变量和读写锁)
  • 倒排索引:Elasticsearch 搜索背后的底层原理
  • openeuler离线安装软件
  • 数据结构---配置网络步骤、单向链表额外应用