Welcome, Guest. Please login or register.

Author Topic: MySQL hints.  (Read 1194 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MunchkinTopic starter

MySQL hints.
« on: January 13, 2004, 11:20:50 PM »
I need some hints in how to get MySQL to work.

I've installed the 4.0.4 and the 4.1.0 update for 040 but I don't seem to get it to work properly.

The readme doesn't give much clues, this is all it contains:

Quote
to start MySqld, just execute startmysqld script that is in mysql: directory.

Note that MySqld will be started with the SixK user. if you don't want it, edit startMySqld and change the user by your user name.


Checked the documentation on the mysql website but that didn't quite make me get much further. it SEEMS like it's running when I start it but it says I can only have -user set if it's running as root and I have no idea whatsoever how to get into administration (have tried two different php admin scripts), dunno where to set user and password.

anyone that has mysql up and running that care to give me some hints? I would really appreciate it. My Apache webserver isn't complete without sql.

Or is it some other SQL-agent that will work just as well for Amiga?

 

Offline MunchkinTopic starter

Re: MySQL hints.
« Reply #1 on: January 15, 2004, 01:15:23 AM »
Bumping it up with hope that someone might have some vital information to give me.
 

Offline dezignersrepublic

  • Sr. Member
  • ****
  • Join Date: Sep 2002
  • Posts: 370
    • Show only replies by dezignersrepublic
    • http://www.findingthem.com
Re: MySQL hints.
« Reply #2 on: January 15, 2004, 10:41:16 AM »
I'm assunming you ran mysql_installdb first, this creates the necessary tables etc for mysql to work.  You then need to startup mysql using safe_mysqld.
Once you've got the above running, do this:

to set the password you use :

mysqladmin -u root password 'yourpassword'

You'll need to keep the password with the single quotes.

After that you can create users within mysql itself, login to mysql using

mysql -u root -p
once at the mysql prompt:

use mysql;
grant all privileges on databasename.* to 'user'@'%' identified by 'password for user';

you'll then need to run

flush privileges;

before this new user can login.

If you need any help, let me know.
--