How to install Mysql on my VPS?

Mihai B.

Well-known member
Joined
Apr 19, 2016
Messages
177
Best answers
0
Ratings
14
Points
18
#1
I have a VPS for manipulating with mysql databases, I would like to install Mysql on it. What command to install Mysql on CentOS 6 running on a VPS? Many thanks!
 

mobin

Well-known member
Joined
Jun 22, 2017
Messages
212
Best answers
0
Ratings
82 1
Points
28
#2

Mihai B.

Well-known member
Joined
Apr 19, 2016
Messages
177
Best answers
0
Ratings
14
Points
18
#3
Mihai B.
There are so many commands there, I don't know which command to install, I found this command on the forum yum install mysql-server, tried to run and it worked. I am not sure it is right command or not but here's what I got from the terminal.

Code:
[[email protected] ~]# yum install mysql-server
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
epel/metalink                                            | 3.7 kB     00:00
 * epel: fedora.mirror.serversaustralia.com.au
base                                                     | 3.7 kB     00:00
epel                                                     | 4.7 kB     00:00
epel/primary_db                                          | 6.0 MB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 8.1 MB     00:03 ...
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-8.el6_8 will be installed
--> Processing Dependency: mysql = 5.1.73-8.el6_8 for package: mysql-server-5.1.                                                                                                                                                                             73-8.el6_8.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-8.el6_8.x86                                                                                                                                                                             _64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-8.el6                                                                                                                                                                             _8.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-8.el6_8.x8                                                                                                                                                                             6_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch          Version                  Repository   Size
================================================================================
Installing:
 mysql-server          x86_64        5.1.73-8.el6_8           base        8.6 M
Installing for dependencies:
 mysql                 x86_64        5.1.73-8.el6_8           base        895 k
 perl-DBD-MySQL        x86_64        4.013-3.el6              base        134 k
 perl-DBI              x86_64        1.609-4.el6              base        705 k

Transaction Summary
================================================================================
Install       4 Package(s)

Total download size: 10 M
Installed size: 29 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): mysql-5.1.73-8.el6_8.x86_64.rpm                   | 895 kB     00:00 ...
(2/4): mysql-server-5.1.73-8.el6_8.x86_64.rpm            | 8.6 MB     00:01 ...
(3/4): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm             | 134 kB     00:00 ...
(4/4): perl-DBI-1.609-4.el6.x86_64.rpm                   | 705 kB     00:00 ...
--------------------------------------------------------------------------------
Total                                           3.8 MB/s |  10 MB     00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-DBI-1.609-4.el6.x86_64                                  1/4
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                            2/4
  Installing : mysql-5.1.73-8.el6_8.x86_64                                  3/4
  Installing : mysql-server-5.1.73-8.el6_8.x86_64                           4/4
  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                            1/4
  Verifying  : mysql-server-5.1.73-8.el6_8.x86_64                           2/4
  Verifying  : mysql-5.1.73-8.el6_8.x86_64                                  3/4
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                  4/4

Installed:
  mysql-server.x86_64 0:5.1.73-8.el6_8

Dependency Installed:
  mysql.x86_64 0:5.1.73-8.el6_8       perl-DBD-MySQL.x86_64 0:4.013-3.el6
  perl-DBI.x86_64 0:1.609-4.el6

Complete!
 

mobin

Well-known member
Joined
Jun 22, 2017
Messages
212
Best answers
0
Ratings
82 1
Points
28
#4
mobin
What you have tried is correct..but it's installing very old version of MySQL. To install new version and to get regular community updates for the package, you need to follow the instructions in the article. There is no single command of course but it needs to execute multiple commands to accomplish it.
 
Latest Threads
Replies
0
Views
9
Replies
0
Views
29
Replies
7
Views
47
Replies
2
Views
39
Recommended Threads
Replies
0
Views
405
Replies
2
Views
1,213
Replies
21
Views
2,550
Replies
0
Views
1,172

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top