Jump to content

Install mysql


jwwceo

Recommended Posts

Hello,

 

I am installing mysql on my first dedicated server, and I am having some problems. I hope it's something simple...

 

I have downloaded the sourceballs, unzipped them, and ran the compile command, only to get this error:

 

Any idears???

 

[root@localhost mysql-5.0.51a-linux-i686]# ./configure --prefix=/usr/local/mysql
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-5.0.51a-linux-i686]# nohup: redirecting stderr to stdout
chown: `mysql': invalid user
Starting mysqld daemon with databases from /usr/src/mysql-5.0.51a-linux-i686/data
STOPPING server from pid file /usr/src/mysql-5.0.51a-linux-i686/data/localhost.localdomain.pid
080418 19:51:13  mysqld ended

Link to comment
Share on other sites

I read the instructions better, and see that this version does not need to be compiled...so I have MySQL installed, I am pretty sure...but I have some very basic questions...

 

in order to run any of the test commands like:

 

bin/mysqlshow

 

I need to add this to the code

 

bin/mysqlshow --user=mysql

 

I am assuming I am operating as root, and don't have access to the files, but how do I operate as mysql?? The only logon I have on my server is root. I guess I am a little confused as to the different types of users. From what I can tell, there are linux users, and then separate mysql users, one of which is also called root???

 

The documentation is a little ambiguous to me. Any tips would be great!!

 

James

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.