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

杭州网站备案广东企业建网站

杭州网站备案,广东企业建网站,做网站预算表,深圳市建设工程一、官网下载mariadb安装包 Download MariaDB Server - MariaDB.org 找到对应的版本 下载安装包后上传到服务器这里不再赘述。 二、安装二进制包 1、解压安装包 2、查看安装包内的安装提示文档根据提示文档进行安装 # 解压安装包 tar xf mariadb-10.11.6-linux-systemd-x8…

一、官网下载mariadb安装包

Download MariaDB Server - MariaDB.org

找到对应的版本

下载安装包后上传到服务器这里不再赘述。

二、安装二进制包

1、解压安装包

2、查看安装包内的安装提示文档根据提示文档进行安装

# 解压安装包
tar xf mariadb-10.11.6-linux-systemd-x86_64
# 进入安装包
d Testing."
mariadb-10.11.6-linux-systemd-x86_64]# ls
bin      CREDITS  include         lib  mysql-test  README-wsrep  share      support-files
COPYING  docs     INSTALL-BINARY  man  README.md   scripts       sql-bench  THIRDPARTY
mariadb-10.11.6-linux-systemd-x86_64]# head -n 10 INSTALL-BINARY 
MariaDB and MySQL have identical install methods. In this document we
describe how to install MariaDB.The full documentation for installing MariaDB can be found at
https://mariadb.com/kb/en/library/binary-packages/
However most documentation at www.mysql.com also applies.2.2. Installing MariaDB from Generic Binaries on Unix/LinuxThis section covers the installation of MariaDB binary distributions

3、复制目录到/usr/local下

4、创建MySQL用户,给目录授权MySQL权限

# 把安装目录复制到/usr/local下 这里可以任意目录
cp -r mariadb-10.11.6-linux-systemd-x86_64 /usr/local/mysql
# 创建MySQL用户 授予MySQL权限
useradd mysql
chown -R mysql:mysql /usr/local/mysql/# 创建日志目录
mkdir -p /var/log/mariadb
cd /var/log/
chown mysql:mysql mariadb

5、初始化数据库

 mysql]# cd /usr/local/mysql/mysql]# scripts/mysql_install_db --user=mysql
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
OKTo start mariadbd at boot time you have to copy
support-files/mariadb.service to the right place for your systemTwo all-privilege accounts were created.
One is root@localhost, it has no password, but you need to
be system 'root' user to connect. Use, for example, sudo mysql
The second is mysql@localhost, it has no password either, but
you need to be the system 'mysql' user to connect.
After connecting you can set the password, if you would need to be
able to connect as any of these users with a password and without sudoSee the MariaDB Knowledgebase at https://mariadb.com/kbYou can start the MariaDB daemon with:
cd '.' ; ./bin/mariadb-safe --datadir='/var/lib/mysql'You can test the MariaDB daemon with mysql-test-run.pl
cd './mysql-test' ; perl mariadb-test-run.plPlease report any problems at https://mariadb.org/jiraThe latest information about MariaDB is available at https://mariadb.org/.Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

6、配置系统服务

# 启动数据库
bin/mysqld_safe --user=mysql &# 把启动服务加到服务里
cd /usr/local/mysql/support-files
sudo cp mysql.server /etc/init.d/mariadb
sudo chmod +x /etc/init.d/mariadb
sudo systemctl enable mariadb
sudo systemctl start mariadb  # 这里启动会一直卡着直接ctrl退出就好了

致此安装完成

三、验证服务

配置账号密码及权限

bin]# cd /usr/local/mysql/bin
bin]# ./mariadb -uroot -p --socket=/var/lib/mysql/mysql.sock
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.11.6-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123qweASD';
Query OK, 0 rows affected (0.002 sec)MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)

用另外一台mysql登录验证账号密码及权限

# 输入正确的密码
mysql]# mysql -uroot -p -h 10.50.11.120 
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 6
Server version: 10.11.6-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> # 输入错误的密码
mysql]# mysql -uroot -p -h 10.50.11.120 
Enter password: 
ERROR 1045 (28000): Access denied for user 'root'@'10.50.78.121' (using password: YES)


文章转载自:

http://NVicj4ur.qbLcm.cn
http://gYRSxmFJ.qbLcm.cn
http://sVF5vKxO.qbLcm.cn
http://hsh08Avl.qbLcm.cn
http://ErgxuJ6W.qbLcm.cn
http://XXE18yDr.qbLcm.cn
http://Gk7FVgXY.qbLcm.cn
http://BIfCEQIQ.qbLcm.cn
http://N6cTFR21.qbLcm.cn
http://xbVpZxg0.qbLcm.cn
http://mksftXHt.qbLcm.cn
http://k0bDO3PZ.qbLcm.cn
http://v1K8Zsna.qbLcm.cn
http://845cq19t.qbLcm.cn
http://FLnTKtH2.qbLcm.cn
http://6ta5bFK4.qbLcm.cn
http://shqjfV6O.qbLcm.cn
http://nxLvR6a9.qbLcm.cn
http://HH36xFwk.qbLcm.cn
http://MxczUIUw.qbLcm.cn
http://yihAcSDi.qbLcm.cn
http://55gSiZW8.qbLcm.cn
http://CVkQ8wD3.qbLcm.cn
http://hD08q0OY.qbLcm.cn
http://3YCdb2hJ.qbLcm.cn
http://KvjeIr3L.qbLcm.cn
http://3wzvMemo.qbLcm.cn
http://uoKqXg2L.qbLcm.cn
http://LuvzxDWp.qbLcm.cn
http://Ygo5iuaW.qbLcm.cn
http://www.dtcms.com/wzjs/769884.html

相关文章:

  • 雕刻机做外贸都是哪些网站深圳装修公司口碑排行
  • wordpress汉化优化网站费用
  • 做网站都需要学什么语言阳西县网络问政平台公众号
  • 设计素材网站会员it行业有哪些职业
  • 公司网站建设一条龙网站规划与建设ppt
  • 自己做的网站怎么发布视频教程广州网站优化效果
  • 网站建设找北冥有鱼网站做多少外链
  • 怎么用dw网站怎么建设视觉差网站制作
  • 网站怎么实现邮件验证手机淘宝网官网
  • 网站页码北京设计机构
  • 邓亚萍20亿做网站绍兴越城区建设局网站
  • 网页播放视频 网站开发旅游网站开发方案ppt
  • 高端响应式网站陵水网站建设装修设计公司
  • 洛阳网站制作建设如何申请一个网址
  • 南阳在线网站制作wordpress 5.0.2 发布失败
  • 宜兴宜兴建设局网站温州网络优化公司
  • 贵阳市城乡建设学校网站北京网站设计学校
  • 刷网站排名怎么刷学网站建设学校
  • 泊头哪里建网站呢创建站点的方法
  • 国外浏览器网站html黑什么主题WordPress
  • 如何苗木网站建设电商网站前端源码
  • 怎么做淘宝联盟网站推广广州网站优
  • 苏州网站优化排名推广西安的网站设计公司名称
  • 河南城乡建设厅网站证书查询wordpress 论坛系统
  • 建个网站的电话广告策划公司
  • 无锡做网站哪家好低价网站建设哪家便宜
  • 企业网站建设专业的最优惠的手机网站建设
  • 营销网站的特征手机网站建设的企业
  • 上杭县城乡规划建设局网站搜索网站的设计与建设
  • wordpress主题制作 工具网站的内部优化公司