Results 1 to 16 of 16
Thread: HowTo: Install MySQL
-
03-15-2006, 08:19 AM #1Newbie
- Join Date
- Mar 2006
- Location
- Argentine
- Posts
- 19
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,
-
03-22-2006, 08:13 PM #2WHT Addict
- Join Date
- Mar 2006
- Posts
- 171
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
-
03-22-2006, 08:19 PM #3Newbie
- Join Date
- Dec 2005
- Posts
- 17
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.
-
03-22-2006, 08:47 PM #4Newbie
- Join Date
- Mar 2006
- Location
- Argentine
- Posts
- 19
Originally Posted by Rebel007
I am glad that it has served the guide to you. Thanks to you.Nicolas Crespo
InforHosting.Net
Shared Hosting Linux . Dedicated Servers Fully Managed . CPanel . Fantastico
-
03-26-2006, 01:40 PM #5Newbie
- Join Date
- Aug 2005
- Posts
- 22
Would this work with new version of mysql?
-
03-26-2006, 04:28 PM #6Newbie
- Join Date
- Mar 2006
- Location
- Argentine
- Posts
- 19
I do not know if it works with the new version.
Nicolas Crespo
InforHosting.Net
Shared Hosting Linux . Dedicated Servers Fully Managed . CPanel . Fantastico
-
03-27-2006, 07:18 PM #7Eternal Member
- Join Date
- Dec 2004
- Location
- New York, NY
- Posts
- 10,710
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.MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business
-
05-25-2006, 03:55 PM #8Junior Guru
- Join Date
- Nov 2002
- Location
- Warsaw, IN
- Posts
- 184
It unloads completes stable version of MySQL with wget.
- Type: tar zxvf mysql-3.23.56.tar.gz
-
05-27-2006, 03:48 PM #9Web Hosting Master
- Join Date
- Dec 2004
- Location
- Washington, DC
- Posts
- 789
Originally Posted by bubazoo
-
06-30-2006, 09:37 AM #10Disabled
- Join Date
- Jun 2006
- Posts
- 6
Originally Posted by VisionaryHost
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.
-
04-08-2011, 06:13 PM #11Temporarily Suspended
- Join Date
- Aug 2010
- Posts
- 25
Just type:
yum install mysql-server mysql
-
04-20-2011, 04:40 PM #12Newbie
- Join Date
- Feb 2011
- Posts
- 25
You should do this via the package manager, not from source!
-
04-25-2011, 02:43 AM #13Web Hosting Master
- Join Date
- Feb 2011
- Posts
- 792
What about compiling Percona server? Does anyone know how to do this?
My personal blog -- rubiverse.net
-
04-25-2011, 03:26 AM #14Junior Guru Wannabe
- Join Date
- Mar 2011
- Posts
- 98
[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
-
04-25-2011, 03:30 AM #15Junior Guru Wannabe
- Join Date
- Mar 2011
- Posts
- 98
[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!
-
06-20-2011, 11:42 AM #16WHT Addict
- Join Date
- Nov 2010
- Location
- London, England
- Posts
- 171
Thanks for this tutorial, although couldn't you of just done:
yum install mysqld mysql-devel