hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS Tutorials : HowTo: Install MySQL
Reply

VPS Tutorials Tutorials related to VPS.
Forum Jump

HowTo: Install MySQL

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-15-2006, 08:19 AM
Frion Frion is offline
Newbie
 
Join Date: Mar 2006
Location: Argentine
Posts: 13

HowTo: Install MySQL


Hello,

In order to install MySQL in your dedicated server or VPS Linux, you must follow the following instructions.

It unloads completes stable version of MySQL with wget.

- Type: tar zxvf mysql-3.23.56.tar.gz
- Type: cd mysql-3.23.56
- Type: mkdir /usr/local/mysql
- Type: make clean
- Type: ./configure --prefix=/usr/local/mysql
- Type: make
- Type: make install
- Type: useradd -g root mysql
- Type: /usr/local/mysql/bin/mysql_install_db
- Type: chown -R mysql /usr/local/mysql/var
- Type: /usr/local/mysql/bin/safe_mysqld &
- Type: /usr/local/mysql/bin/mysqladmin -u root password 'new-password'
- Type: /usr/local/mysql/bin/mysqladmin -u root -p -h localhost password 'new-password'

Thanks,

Reply With Quote


Sponsored Links
  #2  
Old 03-22-2006, 08:13 PM
Rebel007 Rebel007 is offline
WHT Addict
 
Join Date: Mar 2006
Posts: 169
Just in case MySQL isn't preinstalled on my VPS (when I get it) I want to thank you for posting this guide, as a newbie to this level of web administration this could well save what hair I have let, THANK YOU

Reply With Quote
  #3  
Old 03-22-2006, 08:19 PM
cooled cooled is offline
Newbie
 
Join Date: Dec 2005
Posts: 16
yes but what about mysql 4 or 4.1 or even 5 you only detail mysql 3.23. it should be the same with the newer mysqls. correct me if im wrong.

Reply With Quote
Sponsored Links
  #4  
Old 03-22-2006, 08:47 PM
Frion Frion is offline
Newbie
 
Join Date: Mar 2006
Location: Argentine
Posts: 13
Quote:
Originally Posted by Rebel007
Just in case MySQL isn't preinstalled on my VPS (when I get it) I want to thank you for posting this guide, as a newbie to this level of web administration this could well save what hair I have let, THANK YOU

I am glad that it has served the guide to you. Thanks to you.

Reply With Quote
  #5  
Old 03-26-2006, 01:40 PM
VisionaryHost VisionaryHost is offline
Newbie
 
Join Date: Aug 2005
Posts: 21
Would this work with new version of mysql?

Reply With Quote
  #6  
Old 03-26-2006, 04:28 PM
Frion Frion is offline
Newbie
 
Join Date: Mar 2006
Location: Argentine
Posts: 13
I do not know if it works with the new version.

Reply With Quote
  #7  
Old 03-27-2006, 07:18 PM
layer0 layer0 is offline
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,349
Hello,

That is a pretty standard install procecedure (./configure make make install) so I don't think there should be a problem on a newer version.

Reply With Quote
  #8  
Old 05-25-2006, 03:55 PM
bubazoo bubazoo is offline
WHT Addict
 
Join Date: Nov 2002
Location: Warsaw, IN
Posts: 166
Quote:
It unloads completes stable version of MySQL with wget.

- Type: tar zxvf mysql-3.23.56.tar.gz
no, thats the tar command, whats the URL to wget mysql 4? One of my scripts requires mysql 4 in order to function, thanks

Reply With Quote
  #9  
Old 05-27-2006, 03:48 PM
Mark S Mark S is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Washington, DC
Posts: 787
Quote:
Originally Posted by bubazoo
no, thats the tar command, whats the URL to wget mysql 4? One of my scripts requires mysql 4 in order to function, thanks
MySQL downloads can be browsed and retrieved at http://dev.mysql.com/downloads/

Reply With Quote
  #10  
Old 06-30-2006, 09:37 AM
uniVPS uniVPS is offline
Disabled
 
Join Date: Jun 2006
Posts: 5
Quote:
Originally Posted by VisionaryHost
Would this work with new version of mysql?

Do not use this with a newer version. It may crash. Or backup everything and then try it or you may want to try 2 mySQL version on 1 server...


Last edited by uniVPS; 06-30-2006 at 09:41 AM.
Reply With Quote
  #11  
Old 04-08-2011, 06:13 PM
gangcai gangcai is offline
Temporarily Suspended
 
Join Date: Aug 2010
Posts: 24
Just type:
yum install mysql-server mysql

Reply With Quote
  #12  
Old 04-20-2011, 04:40 PM
Dr-Horrible Dr-Horrible is offline
Newbie
 
Join Date: Feb 2011
Posts: 24
You should do this via the package manager, not from source!

Reply With Quote
  #13  
Old 04-25-2011, 02:43 AM
flam316 flam316 is offline
Web Hosting Master
 
Join Date: Feb 2011
Posts: 786
What about compiling Percona server? Does anyone know how to do this?

Reply With Quote
  #14  
Old 04-25-2011, 03:26 AM
eric6630 eric6630 is offline
Newbie
 
Join Date: Mar 2011
Posts: 20
[root@vps ~]# tar zxvf mysql-3.23.56.tar.gz
tar: mysql-3.23.56.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
[root@vps ~]#


sir i got error please help us

Reply With Quote
  #15  
Old 04-25-2011, 03:30 AM
eric6630 eric6630 is offline
Newbie
 
Join Date: Mar 2011
Posts: 20
Quote:
[root@vps ~]# yum install mysql-server mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* base: linux.mirrors.es.net
* extras: mirrors.ecvps.com
* rpmforge: apt.sw.be
* updates: mirror.san.fastserv.com
addons | 951 B 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
rpmforge | 1.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.77-4.el5_5.5 set to be updated
--> Processing Dependency: perl(DBI) for package: mysql
---> Package mysql-server.i386 0:5.0.77-4.el5_5.5 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Running transaction check
---> Package perl-DBD-MySQL.i386 0:3.0007-2.el5 set to be updated
---> Package perl-DBI.i386 0:1.52-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql i386 5.0.77-4.el5_5.5 updates 4.8 M
mysql-server i386 5.0.77-4.el5_5.5 updates 9.8 M
Installing for dependencies:
perl-DBD-MySQL i386 3.0007-2.el5 base 148 k
perl-DBI i386 1.52-2.el5 base 600 k

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

Total download size: 15 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): perl-DBD-MySQL-3.0007-2.el5.i386.rpm | 148 kB 00:00
(2/4): perl-DBI-1.52-2.el5.i386.rpm | 600 kB 00:00
(3/4): mysql-5.0.77-4.el5_5.5.i386.rpm | 4.8 MB 00:01
(4/4): mysql-server-5.0.77-4.el5_5.5.i386.rpm | 9.8 MB 00:02
--------------------------------------------------------------------------------
Total 2.6 MB/s | 15 MB 00:05
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-DBI 1/4
Installing : mysql 2/4
Installing : perl-DBD-MySQL 3/4
Installing : mysql-server 4/4

Installed:
mysql.i386 0:5.0.77-4.el5_5.5 mysql-server.i386 0:5.0.77-4.el5_5.5

Dependency Installed:
perl-DBD-MySQL.i386 0:3.0007-2.el5 perl-DBI.i386 0:1.52-2.el5

Complete!
but when i install mysql it was completed

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Softaculous Adds 17 New Apps to Auto Installer Library Web Hosting News 2011-09-12 17:51:10
Web Host A2 Hosting Launches QuickInstaller Tool for VPS Plans Web Hosting News 2011-08-19 20:00:53
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43
Attracta Offers Single-Click Web App Installation to Customers Web Hosting News 2011-08-11 16:57:09


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?