首页 > 数据库 >ubuntu安装mysql

ubuntu安装mysql

时间:2024-05-27 20:57:52浏览次数:29  
标签:... amd64 ipadic mysql mecab perl ubuntu 安装

ubuntu安装mysql

  1. 更新软件包列表
    sudo apt update
  2. 安装mysql服务器
    sudo apt install msyql-server
  3. 启动并检查mysql服务
    sudo systemctl start mysql
    sudo systemctl status mysql
  4. 无密码登录mysql
    sudo mysql -u root
  5. 给root创建密码
    如果是mysql 5.0版本,使用alter user 'root'@'localhost' identified by 'new-password';;
    如果是mysql 8.0版本,使用alter user 'root'@'localhost' identified with 'caching_sha2_password' by 'new-password'
  6. 创建一个新的mysql用户
create user 'newuser'@'localhost' identified by 'password';  
grant all privileges on *.* to 'newuser'@'localhost' with grant option;  
flush privileges;
Ubuntu安装mysql全过程代码
lyh@u1:~$ sudo apt update
Get:1 http://mirrors.ustc.edu.cn/ubuntu jammy InRelease [270 kB]
Hit:2 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu jammy InRelease                                                                 
Get:3 http://mirrors.ustc.edu.cn/ubuntu jammy-updates InRelease [119 kB]                                                                 
Get:4 http://mirrors.ustc.edu.cn/ubuntu jammy-backports InRelease [109 kB]
Get:5 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 Packages [1,395 kB]
Get:6 http://mirrors.ustc.edu.cn/ubuntu jammy/main Translation-en [510 kB]
Get:7 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 c-n-f Metadata [30.3 kB]    
Get:8 http://mirrors.ustc.edu.cn/ubuntu jammy/restricted amd64 Packages [129 kB]      
Get:9 http://mirrors.ustc.edu.cn/ubuntu jammy/restricted Translation-en [18.6 kB]
Get:10 http://mirrors.ustc.edu.cn/ubuntu jammy/restricted amd64 c-n-f Metadata [488 B]
Get:11 http://mirrors.ustc.edu.cn/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]              
Get:13 http://mirrors.ustc.edu.cn/ubuntu jammy/universe Translation-en [5,652 kB]
Get:14 http://mirrors.ustc.edu.cn/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]               
Get:15 http://mirrors.ustc.edu.cn/ubuntu jammy/multiverse amd64 Packages [217 kB]                 
Get:16 http://mirrors.ustc.edu.cn/ubuntu jammy/multiverse Translation-en [112 kB]           
Get:17 http://mirrors.ustc.edu.cn/ubuntu jammy/multiverse amd64 c-n-f Metadata [8,372 B]          
Get:18 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 Packages [1,683 kB]               
Get:19 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main Translation-en [312 kB]           
Get:20 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 c-n-f Metadata [16.1 kB]        
Get:21 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/restricted amd64 Packages [1,933 kB]         
Get:22 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/restricted Translation-en [328 kB]     
Get:23 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [520 B]     
Get:24 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/universe amd64 Packages [1,075 kB]
Get:25 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/universe Translation-en [246 kB]       
Get:26 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]    
Get:27 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/multiverse amd64 Packages [42.7 kB]          
Get:28 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/multiverse Translation-en [10.4 kB]   
Get:29 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]      
Get:30 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/main amd64 Packages [67.1 kB]
Get:31 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/main Translation-en [11.0 kB]       
Get:32 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]          
Get:33 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:34 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/universe amd64 Packages [27.2 kB]       
Get:35 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/universe Translation-en [16.2 kB]         
Get:36 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]
Get:37 http://mirrors.ustc.edu.cn/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 28.8 MB in 4s (7,662 kB/s)                                    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
22 packages can be upgraded. Run 'apt list --upgradable' to see them.
lyh@u1:~$ sudo apt install mysql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mysql
lyh@u1:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libclone-perl libencode-locale-perl libevent-pthreads-2.1-7 libfcgi-bin libfcgi-perl libfcgi0ldbl
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
  liblwp-mediatypes-perl libmecab2 libprotobuf-lite23 libtimedate-perl liburi-perl mecab-ipadic mecab-ipadic-utf8 mecab-utils
  mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server-8.0 mysql-server-core-8.0
Suggested packages:
  libdata-dump-perl libipc-sharedcache-perl libbusiness-isbn-perl libwww-perl mailx tinyca
The following NEW packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libclone-perl libencode-locale-perl libevent-pthreads-2.1-7 libfcgi-bin libfcgi-perl libfcgi0ldbl
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl
  liblwp-mediatypes-perl libmecab2 libprotobuf-lite23 libtimedate-perl liburi-perl mecab-ipadic mecab-ipadic-utf8 mecab-utils
  mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server mysql-server-8.0 mysql-server-core-8.0
0 upgraded, 28 newly installed, 0 to remove and 22 not upgraded.
Need to get 29.5 MB of archives.
After this operation, 243 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 mysql-common all 5.8+1.0.8 [7,212 B]
Get:2 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 mysql-client-core-8.0 amd64 8.0.36-0ubuntu0.22.04.1 [2,692 kB]
Get:3 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 mysql-client-8.0 amd64 8.0.36-0ubuntu0.22.04.1 [22.7 kB]
Get:4 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libevent-pthreads-2.1-7 amd64 2.1.12-stable-1build3 [7,642 B]
Get:5 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libmecab2 amd64 0.996-14build9 [199 kB]
Get:6 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 libprotobuf-lite23 amd64 3.12.4-1ubuntu7.22.04.1 [209 kB]
Get:7 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 mysql-server-core-8.0 amd64 8.0.36-0ubuntu0.22.04.1 [17.5 MB]
Get:8 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 mysql-server-8.0 amd64 8.0.36-0ubuntu0.22.04.1 [1,437 kB]
Get:9 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libhtml-tagset-perl all 3.20-4 [12.5 kB]
Get:10 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 liburi-perl all 5.10-1 [78.8 kB]
Get:11 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libhtml-parser-perl amd64 3.76-1build2 [88.4 kB]
Get:12 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libcgi-pm-perl all 4.54-1 [188 kB]
Get:13 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libfcgi0ldbl amd64 2.4.2-2build2 [28.0 kB]
Get:14 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libfcgi-perl amd64 0.82+ds-1build1 [22.8 kB]
Get:15 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libcgi-fast-perl all 1:2.15-1 [10.5 kB]
Get:16 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libclone-perl amd64 0.45-1build3 [11.0 kB]
Get:17 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libencode-locale-perl all 1.05-1.1 [11.8 kB]
Get:18 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libfcgi-bin amd64 2.4.2-2build2 [11.2 kB]
Get:19 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libhtml-template-perl all 2.97-1.1 [59.1 kB]
Get:20 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libtimedate-perl all 2.3300-2 [34.0 kB]
Get:21 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libhttp-date-perl all 6.05-1 [9,920 B]
Get:22 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libio-html-perl all 1.004-2 [15.4 kB]
Get:23 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 liblwp-mediatypes-perl all 6.04-1 [19.5 kB]
Get:24 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 libhttp-message-perl all 6.36-1 [76.8 kB]
Get:25 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 mecab-utils amd64 0.996-14build9 [4,850 B]
Get:26 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 mecab-ipadic all 2.7.0-20070801+main-3 [6,718 kB]
Get:27 http://mirrors.ustc.edu.cn/ubuntu jammy/main amd64 mecab-ipadic-utf8 all 2.7.0-20070801+main-3 [4,384 B]
Get:28 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 mysql-server all 8.0.36-0ubuntu0.22.04.1 [9,460 B]
Fetched 29.5 MB in 3s (9,897 kB/s)       
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 110311 files and directories currently installed.)
Preparing to unpack .../0-mysql-common_5.8+1.0.8_all.deb ...

Unpacking mysql-common (5.8+1.0.8) ...................................................................................................] 

Selecting previously unselected package mysql-client-core-8.0.........................................................................] 
Preparing to unpack .../1-mysql-client-core-8.0_8.0.36-0ubuntu0.22.04.1_amd64.deb ...

Unpacking mysql-client-core-8.0 (8.0.36-0ubuntu0.22.04.1) ............................................................................] 

Selecting previously unselected package mysql-client-8.0..............................................................................] 
Preparing to unpack .../2-mysql-client-8.0_8.0.36-0ubuntu0.22.04.1_amd64.deb ...

Unpacking mysql-client-8.0 (8.0.36-0ubuntu0.22.04.1) .................................................................................] 

Selecting previously unselected package libevent-pthreads-2.1-7:amd64.................................................................] 
Preparing to unpack .../3-libevent-pthreads-2.1-7_2.1.12-stable-1build3_amd64.deb ...

Unpacking libevent-pthreads-2.1-7:amd64 (2.1.12-stable-1build3) ......................................................................] 

Selecting previously unselected package libmecab2:amd64...............................................................................] 
Preparing to unpack .../4-libmecab2_0.996-14build9_amd64.deb ...
Unpacking libmecab2:amd64 (0.996-14build9) ...

Selecting previously unselected package libprotobuf-lite23:amd64......................................................................] 
Preparing to unpack .../5-libprotobuf-lite23_3.12.4-1ubuntu7.22.04.1_amd64.deb ...

Unpacking libprotobuf-lite23:amd64 (3.12.4-1ubuntu7.22.04.1) .........................................................................] 

Selecting previously unselected package mysql-server-core-8.0.........................................................................] 
Preparing to unpack .../6-mysql-server-core-8.0_8.0.36-0ubuntu0.22.04.1_amd64.deb ...

Unpacking mysql-server-core-8.0 (8.0.36-0ubuntu0.22.04.1) ............................................................................] 

Setting up mysql-common (5.8+1.0.8) ..................................................................................................] 

update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode..............................] 

Selecting previously unselected package mysql-server-8.0..............................................................................] 
(Reading database ... 110525 files and directories currently installed.)
Preparing to unpack .../00-mysql-server-8.0_8.0.36-0ubuntu0.22.04.1_amd64.deb ...

Unpacking mysql-server-8.0 (8.0.36-0ubuntu0.22.04.1) .................................................................................] 
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../01-libhtml-tagset-perl_3.20-4_all.deb ...

Unpacking libhtml-tagset-perl (3.20-4) ...............................................................................................] 

Selecting previously unselected package liburi-perl...................................................................................] 
Preparing to unpack .../02-liburi-perl_5.10-1_all.deb ...

Unpacking liburi-perl (5.10-1) ...#####...............................................................................................] 

Selecting previously unselected package libhtml-parser-perl:amd64.....................................................................] 
Preparing to unpack .../03-libhtml-parser-perl_3.76-1build2_amd64.deb ...

Unpacking libhtml-parser-perl:amd64 (3.76-1build2) ...................................................................................] 

Selecting previously unselected package libcgi-pm-perl................................................................................] 
Preparing to unpack .../04-libcgi-pm-perl_4.54-1_all.deb ...

Unpacking libcgi-pm-perl (4.54-1) ...######...........................................................................................] 

Selecting previously unselected package libfcgi0ldbl:amd64............................................................................] 
Preparing to unpack .../05-libfcgi0ldbl_2.4.2-2build2_amd64.deb ...
Unpacking libfcgi0ldbl:amd64 (2.4.2-2build2) ...

Selecting previously unselected package libfcgi-perl:amd64............................................................................] 
Preparing to unpack .../06-libfcgi-perl_0.82+ds-1build1_amd64.deb ...

Unpacking libfcgi-perl:amd64 (0.82+ds-1build1) .......................................................................................] 

Selecting previously unselected package libcgi-fast-perl..............................................................................] 
Preparing to unpack .../07-libcgi-fast-perl_1%3a2.15-1_all.deb ...

Unpacking libcgi-fast-perl (1:2.15-1) ...########.....................................................................................] 

Selecting previously unselected package libclone-perl.................................................................................] 
Preparing to unpack .../08-libclone-perl_0.45-1build3_amd64.deb ...

Unpacking libclone-perl (0.45-1build3) ...#########...................................................................................] 

Selecting previously unselected package libencode-locale-perl.........................................................................] 
Preparing to unpack .../09-libencode-locale-perl_1.05-1.1_all.deb ...
Unpacking libencode-locale-perl (1.05-1.1) ...

Selecting previously unselected package libfcgi-bin.##................................................................................] 
Preparing to unpack .../10-libfcgi-bin_2.4.2-2build2_amd64.deb ...

Unpacking libfcgi-bin (2.4.2-2build2) ...##############...............................................................................] 

Selecting previously unselected package libhtml-template-perl.........................................................................] 
Preparing to unpack .../11-libhtml-template-perl_2.97-1.1_all.deb ...

Unpacking libhtml-template-perl (2.97-1.1) ...############............................................................................] 

Selecting previously unselected package libtimedate-perl.##...........................................................................] 
Preparing to unpack .../12-libtimedate-perl_2.3300-2_all.deb ...

Unpacking libtimedate-perl (2.3300-2) ...###################..........................................................................] 

Selecting previously unselected package libhttp-date-perl.###.........................................................................] 
Preparing to unpack .../13-libhttp-date-perl_6.05-1_all.deb ...

Unpacking libhttp-date-perl (6.05-1) ...######################........................................................................] 
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../14-libio-html-perl_1.004-2_all.deb ...

Unpacking libio-html-perl (1.004-2) ...#########################......................................................................] 

Selecting previously unselected package liblwp-mediatypes-perl.##.....................................................................] 
Preparing to unpack .../15-liblwp-mediatypes-perl_6.04-1_all.deb ...

Unpacking liblwp-mediatypes-perl (6.04-1) ...#####################....................................................................] 

Selecting previously unselected package libhttp-message-perl.######...................................................................] 
Preparing to unpack .../16-libhttp-message-perl_6.36-1_all.deb ...

Unpacking libhttp-message-perl (6.36-1) ...#########################..................................................................] 

Selecting previously unselected package mecab-utils.#################.................................................................] 
Preparing to unpack .../17-mecab-utils_0.996-14build9_amd64.deb ...

Unpacking mecab-utils (0.996-14build9) ...############################................................................................] 

Selecting previously unselected package mecab-ipadic.##################...............................................................] 
Preparing to unpack .../18-mecab-ipadic_2.7.0-20070801+main-3_all.deb ...
Unpacking mecab-ipadic (2.7.0-20070801+main-3) ...

Selecting previously unselected package mecab-ipadic-utf8.###############.............................................................] 
Preparing to unpack .../19-mecab-ipadic-utf8_2.7.0-20070801+main-3_all.deb ...

Unpacking mecab-ipadic-utf8 (2.7.0-20070801+main-3) ...###################............................................................] 

Selecting previously unselected package mysql-server.######################...........................................................] 
Preparing to unpack .../20-mysql-server_8.0.36-0ubuntu0.22.04.1_all.deb ...

Unpacking mysql-server (8.0.36-0ubuntu0.22.04.1) ...########################..........................................................] 

Setting up libmecab2:amd64 (0.996-14build9) ...##############################.........................................................] 

Progress: [ 52%] [############################################################........................................................] 
Setting up mysql-client-core-8.0 (8.0.36-0ubuntu0.22.04.1) ...#################.......................................................] 

Setting up libfcgi0ldbl:amd64 (2.4.2-2build2) ...################################.....................................................] 

Progress: [ 56%] [################################################################....................................................] 
Setting up libclone-perl (0.45-1build3) ...########################################...................................................] 

Progress: [ 58%] [##################################################################..................................................] 
Setting up libhtml-tagset-perl (3.20-4) ...##########################################.................................................] 

Progress: [ 59%] [####################################################################................................................] 
Setting up liblwp-mediatypes-perl (6.04-1) ...#########################################...............................................] 

Setting up libfcgi-bin (2.4.2-2build2) ...##############################################..............................................] 

Progress: [ 63%] [########################################################################............................................] 
Setting up libencode-locale-perl (1.05-1.1) ...############################################...........................................] 

Progress: [ 65%] [##########################################################################..........................................] 
Setting up libprotobuf-lite23:amd64 (3.12.4-1ubuntu7.22.04.1) ...############################.........................................] 

Progress: [ 66%] [############################################################################........................................] 
Setting up mecab-utils (0.996-14build9) ...#####################################################......................................] 

Progress: [ 68%] [###############################################################################.....................................] 
Setting up libio-html-perl (1.004-2) ...##########################################################....................................] 

Setting up libtimedate-perl (2.3300-2) ...##########################################################..................................] 

Progress: [ 72%] [###################################################################################.................................] 
Setting up mysql-client-8.0 (8.0.36-0ubuntu0.22.04.1) ...#############################################................................] 

Progress: [ 73%] [#####################################################################################...............................] 
Setting up libfcgi-perl:amd64 (0.82+ds-1build1) ...#####################################################..............................] 

Progress: [ 75%] [#######################################################################################.............................] 
Setting up liburi-perl (5.10-1) ...#######################################################################............................] 

Setting up libevent-pthreads-2.1-7:amd64 (2.1.12-stable-1build3) ...########################################..........................] 

Progress: [ 79%] [###########################################################################################.........................] 
Setting up libhttp-date-perl (6.05-1) ...#####################################################################........................] 

Progress: [ 81%] [#############################################################################################.......................] 
Setting up mecab-ipadic (2.7.0-20070801+main-3) ...#############################################################......................] 

Compiling IPA dictionary for Mecab.  This takes long time...#####################################################.....................] 
reading /usr/share/mecab/dic/ipadic/unk.def ... 40
emitting double-array: 100% |###########################################| 
/usr/share/mecab/dic/ipadic/model.def is not found. skipped.
reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252
reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42
reading /usr/share/mecab/dic/ipadic/Adnominal.csv ... 135
reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19
reading /usr/share/mecab/dic/ipadic/Conjunction.csv ... 171
reading /usr/share/mecab/dic/ipadic/Noun.number.csv ... 42
reading /usr/share/mecab/dic/ipadic/Adj.csv ... 27210
reading /usr/share/mecab/dic/ipadic/Noun.adjv.csv ... 3328
reading /usr/share/mecab/dic/ipadic/Noun.proper.csv ... 27328
reading /usr/share/mecab/dic/ipadic/Symbol.csv ... 208
reading /usr/share/mecab/dic/ipadic/Adverb.csv ... 3032
reading /usr/share/mecab/dic/ipadic/Others.csv ... 2
reading /usr/share/mecab/dic/ipadic/Noun.verbal.csv ... 12146
reading /usr/share/mecab/dic/ipadic/Postp.csv ... 146
reading /usr/share/mecab/dic/ipadic/Noun.demonst.csv ... 120
reading /usr/share/mecab/dic/ipadic/Verb.csv ... 130750
reading /usr/share/mecab/dic/ipadic/Noun.others.csv ... 151
reading /usr/share/mecab/dic/ipadic/Prefix.csv ... 221
reading /usr/share/mecab/dic/ipadic/Noun.place.csv ... 72999
reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668
reading /usr/share/mecab/dic/ipadic/Postp-col.csv ... 91
reading /usr/share/mecab/dic/ipadic/Suffix.csv ... 1393
reading /usr/share/mecab/dic/ipadic/Noun.name.csv ... 34202
reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795
reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477
reading /usr/share/mecab/dic/ipadic/Auxil.csv ... 199
emitting double-array: 100% |###########################################| 
reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316
emitting matrix      : 100% |###########################################| 

done!
update-alternatives: using /var/lib/mecab/dic/ipadic to provide /var/lib/mecab/dic/debian (mecab-dictionary) in auto mode

Setting up mysql-server-core-8.0 (8.0.36-0ubuntu0.22.04.1) ...####################################################....................] 

Setting up mecab-ipadic-utf8 (2.7.0-20070801+main-3) ...###########################################################...................] 

Compiling IPA dictionary for Mecab.  This takes long time...#########################################################.................] 
reading /usr/share/mecab/dic/ipadic/unk.def ... 40
emitting double-array: 100% |###########################################| 
/usr/share/mecab/dic/ipadic/model.def is not found. skipped.
reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252
reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42
reading /usr/share/mecab/dic/ipadic/Adnominal.csv ... 135
reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19
reading /usr/share/mecab/dic/ipadic/Conjunction.csv ... 171
reading /usr/share/mecab/dic/ipadic/Noun.number.csv ... 42
reading /usr/share/mecab/dic/ipadic/Adj.csv ... 27210
reading /usr/share/mecab/dic/ipadic/Noun.adjv.csv ... 3328
reading /usr/share/mecab/dic/ipadic/Noun.proper.csv ... 27328
reading /usr/share/mecab/dic/ipadic/Symbol.csv ... 208
reading /usr/share/mecab/dic/ipadic/Adverb.csv ... 3032
reading /usr/share/mecab/dic/ipadic/Others.csv ... 2
reading /usr/share/mecab/dic/ipadic/Noun.verbal.csv ... 12146
reading /usr/share/mecab/dic/ipadic/Postp.csv ... 146
reading /usr/share/mecab/dic/ipadic/Noun.demonst.csv ... 120
reading /usr/share/mecab/dic/ipadic/Verb.csv ... 130750
reading /usr/share/mecab/dic/ipadic/Noun.others.csv ... 151
reading /usr/share/mecab/dic/ipadic/Prefix.csv ... 221
reading /usr/share/mecab/dic/ipadic/Noun.place.csv ... 72999
reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668
reading /usr/share/mecab/dic/ipadic/Postp-col.csv ... 91
reading /usr/share/mecab/dic/ipadic/Suffix.csv ... 1393
reading /usr/share/mecab/dic/ipadic/Noun.name.csv ... 34202
reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795
reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477
reading /usr/share/mecab/dic/ipadic/Auxil.csv ... 199
emitting double-array: 100% |###########################################| 
reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316
emitting matrix      : 100% |###########################################| 

done!
update-alternatives: using /var/lib/mecab/dic/ipadic-utf8 to provide /var/lib/mecab/dic/debian (mecab-dictionary) in auto mode

Setting up libhtml-parser-perl:amd64 (3.76-1build2) ...###############################################################................] 

Progress: [ 88%] [#####################################################################################################...............] 
Setting up libhttp-message-perl (6.36-1) ...############################################################################..............] 

Progress: [ 89%] [#######################################################################################################.............] 
Setting up mysql-server-8.0 (8.0.36-0ubuntu0.22.04.1) ...#################################################################............] 

update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode#########################...........] 
Renaming removed key_buffer and myisam-recover options (if present)
mysqld will log errors to /var/log/mysql/error.log
mysqld is running as pid 55328
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.

Setting up libcgi-pm-perl (4.54-1) ...######################################################################################..........] 

Setting up libhtml-template-perl (2.97-1.1) ...###############################################################################........] 

Progress: [ 95%] [#############################################################################################################.......] 
Setting up mysql-server (8.0.36-0ubuntu0.22.04.1) ...###########################################################################......] 

Progress: [ 96%] [###############################################################################################################.....] 
Setting up libcgi-fast-perl (1:2.15-1) ...########################################################################################....] 

Progress: [ 98%] [#################################################################################################################...] 
Processing triggers for man-db (2.10.2-1) ...#######################################################################################..] 
Processing triggers for libc-bin (2.35-0ubuntu3.7) ...
Scanning processes...                                                                                                                     
Scanning candidates...                                                                                                                    
Scanning linux images...                                                                                                                  

Restarting services...
 systemctl restart fwupd.service irqbalance.service packagekit.service polkit.service udisks2.service upower.service
Service restarts being deferred:
 systemctl restart ModemManager.service
 systemctl restart networkd-dispatcher.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
lyh@u1:~$ 

启动、检查服务,无密登录详细过程
lyh@u1:~$ sudo systemctl start mysql
lyh@u1:~$ sudo systemctl enable mysql
Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysql
lyh@u1:~$ sudo systemctl status mysql
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-05-27 12:10:42 UTC; 8min ago
   Main PID: 55594 (mysqld)
     Status: "Server is operational"
      Tasks: 37 (limit: 4555)
     Memory: 365.8M
        CPU: 3.836s
     CGroup: /system.slice/mysql.service
             └─55594 /usr/sbin/mysqld

May 27 12:10:42 u1 systemd[1]: Starting MySQL Community Server...
May 27 12:10:42 u1 systemd[1]: Started MySQL Community Server.
lyh@u1:~$ sudo mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.36-0ubuntu0.22.04.1 (Ubuntu)

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

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> 

**安装过程弹出的提示框**

标签:...,amd64,ipadic,mysql,mecab,perl,ubuntu,安装
From: https://www.cnblogs.com/aiparallelworld/p/18216497

相关文章

  • redis的6.2.14的docker安装
    1.拉取镜像dockerpullredis:6.2.142.运行镜像sudodockerrun--nameredis-d-p6379:6379\-v/home/cy/soft/redis/data:/data\-v/home/cy/soft/redis/conf/redis-docker.conf:/usr/local/etc/redis/redis.conf\--privileged=true\redis:6.2.14redis-server/usr/lo......
  • 安装和使用delphi最后的余辉:lazarus集成编译环境@FreeBSD
    遥想当年,最牛最流行的两个编程IDE是Delphi和VisualBasic,结果这么多年下来,VB已经没有往昔的热度,而Delphi也已经消亡在历史的长河中。不过Delphi的精神没消失,lazarus坚守delphi的编程风格,散发delphi最后的余辉。Lazarus介绍Lazarus是一个基于FreePascal的跨平台集成开发环境(I......
  • 升鲜宝供应链管理系统重构版发布(技术点:Java8、mysql8.0 uniapp、vue、android、web 框
    升鲜宝供应链管理系统重构版发布(技术点:Java8、mysql8.0uniapp、vue、android、web框架:Vue3+SpringBoot3),界面功能(一)  升鲜宝供应链管理系统重构版发布(技术点:Java8、mysql8.0uniapp、vue、android、web框架:Vue3+SpringBoot3),界面功能(一) 1.登录与申请试用界......
  • 树莓派安装向日葵教程
    树莓派安装向日葵教程RaspberryPi版本:2024-03-15-raspios-bookworm-arm64-full.img下载麒麟arm版本客户端向日葵远程控制app官方下载-贝锐向日葵官网安装依赖包sudoapt-getupdatesudoapt-getinstalllibgtk-3-0或者sudoaptinstalllibappindicator3-1......
  • MySQL函数查询目录树问题记录
    DELIMITER//CREATEFUNCTION`getChildXzqhList`(rootIdBIGINT)RETURNSVARCHAR(4000)BEGINSETSESSIONgroup_concat_max_len=1000000;--设置为1MB设置GROUP_CONCAT函数输出的最大长度大小,太小的话整体会被截掉RETURN(WITH......
  • ubuntu安装docker
    官方安装指南中科大镜像站使用说明添加仓库源手动安装(官方推荐生产环境安装方式)官方仓库源手动安装指南#AddDocker'sofficialGPGkey:sudoapt-getupdatesudoapt-getinstallca-certificatescurlsudoinstall-m0755-d/etc/apt/keyringssudocurl-fsSLhttps......
  • android studio2024最新详解(完全小白)安装-运行第一个程序
    前面我用2023最新版本的,死活就卡在引入依赖那里卡了两天,俺的崩溃谁知啊!! 后面我就换了个思维,看着网上大多的教程都是基于2022或者2020的,我就找了个看起来非常详细的视频,里面的是2020的,所以我就下载了2020。  有点小伙伴可能会找不到androidstudio的过往版本,这里我就直......
  • ubuntu java版本间切换
    今天在编译rk3288安卓5.1时出错,提示需要java1.7.x版本的jdk,而我的ubuntu默认已经安装了java 1.8.0_362版本,下面介绍下我是如何进行java版本切换的。1.从官网上下载得到java 1.7.0_80压缩包(找个QQ邮箱注册账号后就可以直接下载了)https://www.oracle.com/java/technol......
  • MySQL--备份恢复
    目录一、备份恢复的工作职责1.备份的时间周期2.备份的方式3.恢复方案4.检查备份5.定期恢复演练6.故障恢复策略7.迁移升级二、逻辑备份工具--mysqldump1.介绍2.使用场景3.mysqldump命令的参数介绍1)全备:2)单库或多库备份:--常用3)备份某个库下的单表或多表:--不常用4......
  • Centos 7 安装刻录至服务器
    前言在日常测试中,会遇到很多安装的场景,今天给大家讲一下centos7的安装,希望对大家有所帮助。一.下载镜像地址如下:centos官方镜像下载地址https://www.centos.org/download/按照需求依次点击下载二.镜像刻录镜像刻录至u盘,可以使用UltraISO这个工具,详细用法可参考......