Professional Documents
Culture Documents
E: Some index files failed to download. They have been ignored, or old
ones used instead.
(base) student@student-OptiPlex-3020:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
E: Some index files failed to download. They have been ignored, or old
ones used instead.
(base) student@student-OptiPlex-3020:~$ sudo su
root@student-OptiPlex-3020:/home/student# apt-get install mysql-server-
5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libmysqlclient18 mysql-client-5.6 mysql-client-core-
5.6
mysql-common mysql-common-5.6 mysql-server-core-5.6
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
libdbd-mysql-perl libmysqlclient18 mysql-client-5.6 mysql-client-core-
5.6
mysql-common mysql-common-5.6 mysql-server-5.6 mysql-server-core-5.6
0 upgraded, 8 newly installed, 0 to remove and 5 not upgraded.
Need to get 20.6 MB of archives.
After this operation, 164 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main mysql-
common all 5.5.62-0ubuntu0.14.04.1 [12.6 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main
libmysqlclient18 amd64 5.5.62-0ubuntu0.14.04.1 [598 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main libdbd-
mysql-perl amd64 4.025-1ubuntu0.1 [87.6 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-
client-core-5.6 amd64 5.6.33-0ubuntu0.14.04.1 [4,133 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-
client-5.6 amd64 5.6.33-0ubuntu0.14.04.1 [5,555 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-
server-core-5.6 amd64 5.6.33-0ubuntu0.14.04.1 [4,620 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-
server-5.6 amd64 5.6.33-0ubuntu0.14.04.1 [5,602 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe mysql-
common-5.6 all 5.6.33-0ubuntu0.14.04.1 [12.0 kB]
Fetched 20.6 MB in 1min 43s (199 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 197529 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.5.62-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-common (5.5.62-0ubuntu0.14.04.1) ...
Selecting previously unselected package libmysqlclient18:amd64.
Preparing to unpack .../libmysqlclient18_5.5.62-
0ubuntu0.14.04.1_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.5.62-0ubuntu0.14.04.1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../libdbd-mysql-perl_4.025-1ubuntu0.1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.025-1ubuntu0.1) ...
Selecting previously unselected package mysql-client-core-5.6.
Preparing to unpack .../mysql-client-core-5.6_5.6.33-
0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-client-core-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-client-5.6.
Preparing to unpack .../mysql-client-5.6_5.6.33-
0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-client-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server-core-5.6.
Preparing to unpack .../mysql-server-core-5.6_5.6.33-
0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-core-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mysql-common (5.5.62-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server-5.6.
(Reading database ... 197729 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.6_5.6.33-
0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-common-5.6.
Preparing to unpack .../mysql-common-5.6_5.6.33-0ubuntu0.14.04.1_all.deb
...
Unpacking mysql-common-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libmysqlclient18:amd64 (5.5.62-0ubuntu0.14.04.1) ...
Setting up libdbd-mysql-perl (4.025-1ubuntu0.1) ...
Setting up mysql-client-core-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Setting up mysql-client-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Setting up mysql-server-core-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.6 (5.6.33-0ubuntu0.14.04.1) ...
2023-02-27 16:11:44 0 [Warning] Using unique option prefix key_buffer
instead of key_buffer_size is deprecated and will be removed in a future
release. Please use the full name instead.
2023-02-27 16:11:44 0 [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option
(see documentation for more details).
2023-02-27 16:11:44 0 [Note] /usr/sbin/mysqld (mysqld 5.6.33-
0ubuntu0.14.04.1) starting as process 9765 ...
mysql start/running, process 9887
Setting up mysql-common-5.6 (5.6.33-0ubuntu0.14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.15) ...
Processing triggers for ureadahead (0.100.0-16) ...
root@student-OptiPlex-3020:/home/student# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 44
Server version: 5.6.33-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights
reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.