国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > MySQL > 正文

Linux下安裝配置MySQL

2024-07-24 12:51:44
字體:
供稿:網(wǎng)友

系統(tǒng):Ubuntu 16.04LTS

1/官網(wǎng)下載mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz

2/建立工作組:

$su#groupadd mysql#useradd -r -g mysql mysql

3/創(chuàng)建目錄

#mkdir /usr/local/mysql#mkdir /usr/local/mysql/data

4/解壓mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz,并拷貝至/usr/local/mysql

#tar -zxvf mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz#cp -r /home/jieyamulu/mysql-5.7.18-linux-glibc2.5-x86_64/* /usr/local/mysql

5/修改mysql用戶對mysql以下及其子文件夾以下文件的權(quán)限,修改后可使用ll查看權(quán)限

root@Ice-***:/usr/local# chown -R mysql:mysql mysqlroot@Ice-***:/usr/local# ll總用量 44drwxr-xr-x 11 root root 4096 5月 19 07:39 ./drwxr-xr-x 11 root root 4096 2月 16 04:30 ../drwxr-xr-x 2 root root 4096 2月 16 04:19 bin/drwxr-xr-x 2 root root 4096 2月 16 04:19 etc/drwxr-xr-x 2 root root 4096 2月 16 04:19 games/drwxr-xr-x 2 root root 4096 2月 16 04:19 include/drwxr-xr-x 4 root root 4096 2月 16 04:23 lib/lrwxrwxrwx 1 root root 9 3月 29 14:11 man -> share/man/drwxr-xr-x 10 mysql mysql 4096 5月 19 07:48 mysql/drwxr-xr-x 2 root root 4096 2月 16 04:19 sbin/drwxr-xr-x 8 root root 4096 2月 16 04:34 share/drwxr-xr-x 2 root root 4096 2月 16 04:19 src/root@Ice-***:/usr/local# cd mysql/root@Ice-***:/usr/local/mysql# ll總用量 64drwxr-xr-x 10 mysql mysql 4096 5月 19 07:48 ./drwxr-xr-x 11 root root 4096 5月 19 07:39 ../drwxr-xr-x 2 mysql mysql 4096 5月 19 07:48 bin/-rw-r--r-- 1 mysql mysql 17987 5月 19 07:48 COPYINGdrwxr-xr-x 2 mysql mysql 4096 5月 19 07:41 data/drwxr-xr-x 2 mysql mysql 4096 5月 19 07:48 docs/drwxr-xr-x 3 mysql mysql 4096 5月 19 07:48 include/drwxr-xr-x 5 mysql mysql 4096 5月 19 07:48 lib/drwxr-xr-x 4 mysql mysql 4096 5月 19 07:48 man/-rw-r--r-- 1 mysql mysql 2478 5月 19 07:48 READMEdrwxr-xr-x 28 mysql mysql 4096 5月 19 07:48 share/drwxr-xr-x 2 mysql mysql 4096 5月 19 07:48 support-files/

6/修改(或新建)/etc/my.cnf 配置文件

root@Ice-***:/usr/local/mysql# vim /etc/my.cnf [mysqld] basedir=/usr/local/mysql/datadir=/usr/local/mysql/data:wq

7/最關(guān)鍵的初始化

# cd /usr/local/mysql/root@Ice-***:/usr/local/mysql# ./bin/mysqld --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --initialize2017-05-19T00:15:46.529420Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).2017-05-19T00:15:47.066125Z 0 [Warning] InnoDB: New log files created, LSN=457902017-05-19T00:15:47.213711Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.2017-05-19T00:15:47.286951Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 4e958344-3c28-11e7-8334-c8d3ffd2db82.2017-05-19T00:15:47.292857Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.2017-05-19T00:15:47.294758Z 1 [Note] A temporary password is generated for root@localhost: YjaotQk*2ew4
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 大英县| 新营市| 盐边县| 赣州市| 云霄县| 玉山县| 临沭县| 杭州市| 五大连池市| 浙江省| 东海县| 康平县| 金阳县| 犍为县| 岳西县| 兴和县| 锦州市| 江油市| 广宁县| 克山县| 阿坝| 江口县| 台中市| 苍山县| 昌乐县| 邹平县| 永嘉县| 安徽省| 江山市| 错那县| 沧州市| 类乌齐县| 马鞍山市| 图们市| 天长市| 宾川县| 赞皇县| 宣化县| 大洼县| 东乌| 酉阳|