MySQL/PHP

You can post anything you want in here! Woohoo!

Moderators: beyonder, Pez-Man

Post Reply
User avatar
Twilkitri
Pez-Ruler
Pez-Ruler
Posts: 1484
Joined: Sun May 19, 2002 10:20 pm
Location: Australia

MySQL/PHP

Post by Twilkitri »

For once, I'm not asking for help :/
Unless you have a very broad definition of the word...

OK, I'm around halfway through rewriting the STS page into PHP/MySQL, and I was wondering...

a) How do I remotely get a table into the tgb MySQL db...?
b) What do I use as the hostname? localhost, since PHP is server-side, or something different?

Thanks...
User avatar
beyonder
Webmaster
Webmaster
Posts: 672
Joined: Mon May 20, 2002 7:53 pm
Location: my house.
Contact:

Post by beyonder »

first you need a db account, then you need a db then you can put tables in it using the mysql.exe that comes with the windows distro of the sql server...you need to read the command line options to get it to work, localhost will work for hostname, thegreatbeyond.net will too, anything else will need to be an IP address(the server doesnt have a DNS lookup, but recognizes that tgb.net is itself) so if you have your own database server...
Image
User avatar
Twilkitri
Pez-Ruler
Pez-Ruler
Posts: 1484
Joined: Sun May 19, 2002 10:20 pm
Location: Australia

Post by Twilkitri »

OK, how would I go about getting an account...?
User avatar
beyonder
Webmaster
Webmaster
Posts: 672
Joined: Mon May 20, 2002 7:53 pm
Location: my house.
Contact:

Post by beyonder »

you find the person who owns the site(me) and give them a password and a username, and a database name
Image
User avatar
Twilkitri
Pez-Ruler
Pez-Ruler
Posts: 1484
Joined: Sun May 19, 2002 10:20 pm
Location: Australia

Post by Twilkitri »

I can't seem to connect, through the DOS MySQL binary or NaviCat.

I don't know whether I'm doing something wrong, or whether you haven't made the user or not yet...

http://www.thegreatbeyond.net/DarkTwilk ... sqlimport/
In any case, can you import my current files into the database for me so I can test that they work with my test pages? If I can't access it with the binary but I can over the net, that's okay because I can make a page to let me update...

I've migrated around half my pages to use PHP/MySQL now, I can't update until I get it working... they work on my computer/network...
User avatar
beyonder
Webmaster
Webmaster
Posts: 672
Joined: Mon May 20, 2002 7:53 pm
Location: my house.
Contact:

Post by beyonder »

well you havent given me an account name or password or a name for the db.....
Image
User avatar
Twilkitri
Pez-Ruler
Pez-Ruler
Posts: 1484
Joined: Sun May 19, 2002 10:20 pm
Location: Australia

Post by Twilkitri »

I emailed you through the boards :O
I even sent a copy to myself...

Fine, I'll do it again.
Post Reply