Computer Geeks

Computer Geeks

Geek Shop

Geek News

Geek Stuff

Science Geek

Computer Gaming

Linux Chat

Building Websites

Computer Forums

Computer Help Forum

Computer Hardware Forum

Computer Software Programs


Go Back   Computer Forums > Building Websites
FAQ Community Calendar Today's Posts Search

Building Websites This section covers all aspects of publishing, developing and maintaining websites. Topics include: website design, graphic design, website programming, web hosting, website marketing (SEO, link exchange, publicity, advertising), monetization & etc.

Computer Geeks
» Active Discussions
Computer Geeks
No Threads to Display.
» Other Websites
- Software Publishing

- Server Hardening
Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2007, 04:07 PM
Nathan Nathan is offline
Junior Member
GB Newbie
 
Join Date: Mar 2007
Posts: 5
Default Setting up mysql on my home server

Hi all,

Im new to server setup and i was just wondering how i setup mysql on my server - im using centos.

I have setup apache httpd.conf to recognise my network and i have also got ssh working (which a friend done for me).

Reason being is that i would like it for developing my websites and a few other uni projects that i have.

Any help would be greatly appreciated

Nathan
Reply With Quote
  #2  
Old 03-13-2007, 12:06 PM
Chris's Avatar
Chris Chris is offline
Moderator ++
GB Guru
 
Join Date: Jun 2006
Location: Upland, CA
Posts: 128
Default

I believe this is it.
First update yum
Quote:
yum update
then try mysql-server-5.0
Quote:
yum install mysql-server-5.0
if that does not work use
Quote:
yum search mysql-server
thats should give you a list of packages that match mysql-server, mysql 5.0 is what i use.

I do not use CentOS But i have so i know a little. Mysql is the same on all OS's

Quote:
~$ mysql -u root mysql
then
since it will be a new install you will need to do this first.
add password to root account
Quote:
mysql> UPDATE user SET password=PASSWORD('desired_password')
->WHERE User='root';
you should see
Code:
Query OK, 2 rows affected (0.00 sec)
rows matched: 2 Changed: 2 warnings: 0
Then since its new do
Quote:
mysql>DELETE FROM user WHERE user = '';
Code:
mysql>FLUSH PRIVILEGES;
Quote:
mysql>DROP DATABASE test;
Quote:
mysql>exit
__________________
Chris

Blog<-- Read Me
Twitter<-- Follow Me
Facebook<-- Stalk Me



Reply With Quote
  #3  
Old 03-13-2007, 01:17 PM
Nathan Nathan is offline
Junior Member
GB Newbie
 
Join Date: Mar 2007
Posts: 5
Default

Thank you got it working whoo

Nathan
Reply With Quote
  #4  
Old 03-13-2007, 01:34 PM
Chris's Avatar
Chris Chris is offline
Moderator ++
GB Guru
 
Join Date: Jun 2006
Location: Upland, CA
Posts: 128
Default

Paste a copy of you yum.conf file here lets have a look at it.

location: /etc/yum.conf

I am not a 100% sure if yum is even installed on the core system...

I am actually a Debian person myself that plays with all Linux distros and prefer Debian.
__________________
Chris

Blog<-- Read Me
Twitter<-- Follow Me
Facebook<-- Stalk Me



Reply With Quote
  #5  
Old 03-13-2007, 01:37 PM
Chris's Avatar
Chris Chris is offline
Moderator ++
GB Guru
 
Join Date: Jun 2006
Location: Upland, CA
Posts: 128
Default

Wow you did that before i got to finish..
__________________
Chris

Blog<-- Read Me
Twitter<-- Follow Me
Facebook<-- Stalk Me



Reply With Quote
  #6  
Old 03-13-2007, 01:47 PM
Nathan Nathan is offline
Junior Member
GB Newbie
 
Join Date: Mar 2007
Posts: 5
Default

I never activated yum - lol

went into the setup, activated it, started the daemon, done.

Thank you for your help, much appreciated.
Reply With Quote
  #7  
Old 03-13-2007, 01:50 PM
Chris's Avatar
Chris Chris is offline
Moderator ++
GB Guru
 
Join Date: Jun 2006
Location: Upland, CA
Posts: 128
Default

Your welcome for any help i gave. If you have further questions stop by again..
__________________
Chris

Blog<-- Read Me
Twitter<-- Follow Me
Facebook<-- Stalk Me



Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump

Powered by vBadvanced CMPS v3.2.3

All times are GMT -5. The time now is 07:57 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.