当前位置: 首页 > 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://www.dtcms.com/wzjs/790769.html

相关文章:

  • 做宾馆网站wordpress 建网站 vpn
  • 阿里巴巴网站国际站建设企业如何建设免费网站
  • wordpress网站迁移有关建设工程的强制性标准与抗震
  • 沈阳做网站怎样收费陇西网站建设公司
  • 视频解析网站外贸数据超预期彰显中国经济韧性
  • 怎么宣传网站标签系统做的好的网站
  • 网站开发不用mvc行不行曲阜做网站
  • 怎么在新建网站上做分享代码网站维护托管要多少钱
  • 无锡优化网站排名管理系统网页界面设计
  • 陕西省房和城乡建设厅网站深圳网站设计推荐柚米
  • 做网站建设平台宁波seo外包推广平台
  • 昆明网站推广公司个人logo在线生成免费
  • 域名制作网站seo助手
  • 做网站猫腻大吗网站设计开发方案
  • 网站流量数据查询新闻热点事件2023
  • wp做购物网站郑州网站制作公司
  • 怎么查一个网站的备案信息淘宝店铺去哪里买
  • 深圳网站开发兼职网站建设考核表
  • 如何给网站做引流玉环哪里有做网站
  • 网站栅格布局ui设计培训学校哪里好
  • 企业模板网站网络营销第二板斧是什么
  • 移动网站建设学习wordpress添加管理员
  • 自学商城网站建设家政网站模版
  • 建设银行网站 查余额阳江网红酒店
  • 怎么购买域名自己做网站网站源码出售
  • 网站域名备案要多少钱wpf可以做网站吗
  • 网站网页制作机构腾讯云服务器怎么登录
  • 湘潭交通网站开发公司资质需要什么证书
  • 织梦网站如何修改数据库配置软件技术和软件工程有什么区别
  • 做装修网站好赚钱吗网站没有内容可以备案吗