Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
07-15-2006, 02:02 AM
|
#31
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
ooooooooooooooooooooooooooooo i figured out what i was doing wrong, i wasnt really in the right directory
i did ./configure and it said
Quote:
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 all prepared tables
Fill help tables
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 vps.mydomain.com password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
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
Starting mysqld daemon with databases from /home/mysql/mysql-standard-5.0.22-linux-i686/data
STOPPING server from pid file /home/mysql/mysql-standard-5.0.22-linux-i686/data/vps.mydomain.com.pid
060715 03:10:22 mysqld ended
|
so it turns out its a binary. so i dont know what to do now
Last edited by MrSako; 11-08-2006 at 03:35 PM.
|
|
|
|
07-15-2006, 05:21 AM
|
#32
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Ok here we go.
Code:
groupadd mysql
useradd -g mysql mysql
cd /usr/local
tar -zxvf < /path/to/mysql-VERSION-OS.tar.gz
cp mysql-version-OS.tar.gz /usr/local/mysql
cd /usr/local/mysql
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe --user=mysql &
this should get you going. Now this will be different due to the information will now be in /usr/local/mysql. Databases will not be in /var. However you can work around this and get your databases there but That is beyond me. It normally takes me sitting in front of the screen to do this. Any problems let me know.
|
|
|
|
07-15-2006, 01:22 PM
|
#33
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
when i typed in the scripts/mysql_install_db part i got a bunch of this
Quote:
> scripts/mysql_install_db --user=mysql
Installing all prepared tables
Fill help tables
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_keyword.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_keyword.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
060715 14:21:33 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
|
and went over and on with a whole bunch of help related files with frm extensions but at the very bottom it prints out
Quote:
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 vps.mydomain.com password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
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
|
im going ot keep fallowing the instructions but i just didnt expect that
also is this normal?
Quote:
> bin/mysqld_safe --user=mysql &
Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/vps.mydomain.com.pid
060715 14:26:16 mysqld ended
|
Last edited by MrSako; 11-08-2006 at 03:35 PM.
|
|
|
|
07-15-2006, 01:35 PM
|
#34
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Could you post your my.cnf file.
|
|
|
|
07-15-2006, 04:31 PM
|
#35
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i looked around for it, but i dont see where my "my.cnf" file is
|
|
|
|
07-15-2006, 04:52 PM
|
#36
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
It should either be in /usr/local/mysql or /etc. It also maybe that you have to rename something like my-huge.cnf or my-small.cnf to my.cnf or my.conf. Can't remember off the top of my head.
|
|
|
|
07-15-2006, 05:25 PM
|
#37
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i found the cnf files you were talking about,
/usr/local/mysql/mysql-test/std_data/ndb_config_mycnf1.cnf
/usr/local/mysql/mysql-test/std_data/ndb_config_mycnf1.cnf
/usr/local/mysql/support-files/my-huge.cnf
/usr/local/mysql/support-files/my-innodb-heavy-4G.cnf
/usr/local/mysql/support-files/my-large.cnf
/usr/local/mysql/support-files/my-medium.cnf
/usr/local/mysql/support-files/my-small.cnf
what are the differences between them? and where do i place the one i want?
|
|
|
|
07-15-2006, 05:37 PM
|
#38
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
This depends on how this machine will be used. If it is for development purposes then You may just want to go with my-small.cnf. If you are using this in a production environment then you may want to choose medium - huge. The difference is how much the optimization of each of them.
You will need to copy them probably to either /etc or /usr/local/mysql. I am probably going to say copy them to /etc. Then try to run mysql_install_db --user=mysql again. I am currently installing CentOS 4.3 on a test server at my house so once it finishes I will be able to get a better look at what is going on.
|
|
|
|
07-15-2006, 08:56 PM
|
#39
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i try putting it in /usr/local/mysql and /etc each time it did the same thing
> bin/mysqld_safe --user=mysql &
Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/vps.myfomain.com.pid
060715 21:57:14 mysqld ended
Last edited by MrSako; 11-08-2006 at 03:36 PM.
|
|
|
|
07-16-2006, 12:50 AM
|
#40
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
can you post the my.cnf file that is used? I think I came acrossed this error before.
|
|
|
|
07-16-2006, 01:45 PM
|
#42
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
What are the permissions for /usr/local/mysql/data. Is mysql the owner and the group for that directory. If not then do the following to change the permissions on the folder.
Code:
chown -R /usr/local/mysql/data mysql
chgrp -R /usr/local/mysql/data mysql
the issue a mysql_install_db --user=mysql
|
|
|
|
07-16-2006, 02:06 PM
|
#43
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
> chown -R /usr/local/mysql/data mysql
chown: `/usr/local/mysql/data': invalid user
but i did create the mysql user....
|
|
|
|
07-16-2006, 03:36 PM
|
#44
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
nevermind it seems it was just the wrong syntax
> chown -R mysql:mysql /usr/local/mysql/data
> chgrp -R mysql /usr/local/mysql/data
> mysql_install_db --user=mysql
bash: mysql_install_db: command not found
thats what i just did
i also did this again no luck
> bin/mysqld_safe --user=mysql &
Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/vps.mydomain.com.pid
060716 16:39:27 mysqld ended
Last edited by MrSako; 11-08-2006 at 03:36 PM.
|
|
|
|
07-16-2006, 04:26 PM
|
#45
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
ok i got mysql to start!!!!
idunno how but its running but unfourtnatly i still get this in my httpd error log
[client 24.163.113.48] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/phpinfo.php on line 8
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|