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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-25-2004, 02:48 AM
|
#1
|
Member
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113
Rep:
|
mySQL installation
It's me again!
I installed the mySQL 4.1 RPM on my RH9. It installed fine with just one command and I also started mysql, which seems to be running without any errors.
I've been looking in the mysql documents but I can't find a newbie answer, so I'll ask here.
I want to install Invision Power Board, I already have the files on the server but how do I create a database and create and assign a user to that database so that I can use it in IPB installation screen.
Just to let you know I used the visual tool called MySQL Administrator, which is worthless as it doesn't create the user for me, so I need help in shell.
Thanks a lot.
|
|
|
12-25-2004, 03:55 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Generalizing:
If you log into mysql as root:
mysql -u root -p
(Unless you didn't assign a root password, in which case, do that before you finish reading this line.. right now, no right now... no right... now. )
And then to create the db:
create database MYNEWDATabAse
To create a user and give that user permissions (look at the mysql docs for more info on what perms you want to actually give):
GRANT ALL on NYNEWDATabAse to mamajama@localhost idenified by 'IamaGoodPassword';
And there you go. Hopefully you can figure out my "not so cryptic" parts that are variables.
Cool
|
|
|
12-25-2004, 04:13 AM
|
#3
|
Member
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113
Original Poster
Rep:
|
yes I did create a password for root right after installation. I followed the above instructions, still got errors from IPB installation, I'll quit for tonight, if you have any suggestions about IPB, here's the error and submitting.
Fatal error: Call to undefined function: mysql_connect() in /home/amirp/www/html/ipb/ips_kernel/class_db_mysql.php on line 117
|
|
|
12-25-2004, 05:15 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You have another rpm, something along the lines of php_mod or mysql_php (I really don't know the exact name as I don't use RH) but the basic idea is that you don't have php compiled with mysql support, or in other terms (since you didn't compile) RH will have included another RPM for those needing to use PHP with DB support.
Cool
|
|
|
12-25-2004, 05:20 AM
|
#5
|
Member
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113
Original Poster
Rep:
|
php-mysql is what you may be referring to, I can't find where to download it. I found some articles at http://ca3.php.net/mysql but have no clue how to proceed.
|
|
|
12-25-2004, 05:25 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
|
|
|
12-25-2004, 05:26 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Should also be on any install CD's.
Cool
|
|
|
12-25-2004, 05:34 AM
|
#8
|
Member
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113
Original Poster
Rep:
|
installed it, installed the glibc package as well, still no go.
|
|
|
12-25-2004, 06:11 AM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Same error?
Restarting mysql each time you install a related package? Did you get any errors while creating or adjusting the perms (adding a user) on the DB?
Are there any tables being created?
Log in as root to mysql again:
mysql -u root -p
And then:
use MyWhateverDB
Then:
show tables;
And if you'd like:
describe tableX;
If there are no tables, maybe you need to allow more permissions (for troubleshooting you could try grant all if you haven't already) or check the docs for the Invision Power Board to see if you have to create the tables using a script they supply, or if it's part of the 'install' package you are trying to use (not familiar with that board type, so I can't give you specifics).
Cool
|
|
|
12-25-2004, 03:01 PM
|
#10
|
Member
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113
Original Poster
Rep:
|
I don't think mysql is compiled with php still, and I don't know how to go around that. Even on the mysql download page I installed all RPMs, yes I got frustrated
|
|
|
All times are GMT -5. The time now is 12:17 AM.
|
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
|
|