Forum Moderators: phranque

Message Too Old, No Replies

Need a client to access MySQL..

nothing seems to work...

         

ScottM

8:57 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm looking for a client to access MySQL database. I'm clueless as to how to do this.

All the open source programs have some of the worst help/documentation I've ever read. I'm not kidding.

"Download this simple program to administer your MySQL"...so I do...and it takes 16 hours to decipher the spelling errors etc. to only find out I'm STILL clueless...and it doesn't work. It would take longer to install the program than it....well you get the point.

Even my host's documentation is terrible....it didn't even work:

username@server% mysql -hdb14.myhost.com -uusername -p username_dbname
Enter password: <enter password here>
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.27-beta-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer

mysql>

And THAT's the SIMPLE way...

Any ideas?

brotherhood of LAN

9:02 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi Scott, which OS do you use out of curiosity?

I'm playing around with MySQL also, and using PHP to play around with it......after installing "PHP myAdmin" which is free and pretty easy to set up.

Maybe you might want to download and try a similar program. This particular one only asks to change a few lines of code to get it working (you only need to know where you installed it plus your mySQL username/password).

Then, maybe, after you have installed this you can work out exactly what you want to do with mySQL and anything else you want to know (like if it's installed on your host!) :)

ScottM

10:58 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



XP is my OS

I tried the above suggested program...I can't understand the intallation instructions.

MySQL is on my host...I was able to install a database via their GUI...you just can't do anything else with it..

jatar_k

11:01 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>>mysql>

did you get to the point where you had this prompt or is that blurb what they told you to do that didn't work?

ScottM

11:03 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



neither-I copy and pasted their documentation exactly as it was written...

jatar_k

11:04 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



that just looks like the method to connect a telnet client, it should work.

jatar_k

11:09 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



//I think you enter this on one line or in the connection popup or some such depending on the client (not totally sure)

username@server% mysql -hdb14.myhost.com -uusername -p username_dbname

//server replies as such

Enter password:

//you enter your password and, if correct, server welcomes you

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.23.27-beta-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer

mysql>

then you type at the prompt
ie.
show databases;
use somedb;
show tables;
select * from sometable where somefield='value';

etc

brotherhood of LAN

11:13 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Scott,

If you continue to pursue PHPmyAdmin (depending on if your server has PHP installed) then there are 3 bits you want to change in the config.inc.php file (in order of appearance)

$cfg['PmaAbsoluteUri'] = 'URL including / at the end';
$cfg['Servers'][$i]['user'] = 'mySQL username';
$cfg['Servers'][$i]['password'] = 'mySQL password';

Then load up the directory you uploaded to.

There will be other ways, this is just the way I got it up and running for myself.

ScottM

11:18 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jatar-it's that first line that has me confused...which items do I change and which do I leave 'as is'.

I myself changed the 'myhost' portion to stay within the guidelines of this forum...

I've tried 3 different programs...none work...and they claim to be 'simple'.

ScottM

11:20 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bretherhood of lan...PHP is installed-for sure. But where do I put all these files? On my web host's server? The SQL database is on another server within the company...so I don't think 'localhost' will work...although I never tried it.

jatar_k

11:34 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't exactly know what all of this is but I can decode it a little

username@server% mysql -hdb14.myhost.com -u username -p username_dbname

when I log into my server using securecrt and want to go into mysql, I type

mysql -u username -p <enter>
type password <enter>

so, that is a portion of the above line. The rest is the connecting part. I am not totally sure what you would change here because I don't know what server etc you use. I would call your host and have them send you the exact line to use in regards to your particular site. You would think they could do that. Or maybe they can walk you through it.

brotherhood of LAN

11:56 pm on Jul 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>localhost

I dunno Scott, reading the documentation for my host, it says that localhost in my instance can be the only host mentioned due to "security issues". Hopefully someone else might be able to chip in if you choose to use phpmyadmin.

Though a quick email to your host should resolve that sort of prob...

ScottM

12:03 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Passwords don't work during telnet...this is SO ANNOYING!!!

Even my wife...who runs the entire network for our city thinks the documentation is garbage for this...

I e-mailed them almost 3 hours ago...I've yet to receive a response. The part that bothers me is that they have a 'tutorial'...and the tutorial is wrong...is doesn't work.

/frustration

PS-Gave up on Analog 5.22 after several hours (Read double digits of hours) wading through poor documentation. Spent the $99 on a commercial package ....worked in minutes. Still think Analog is over-rated for anyone new to programming...

jatar_k

12:43 am on Jul 5, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sorry ScottM, I'm getting a little confused too. I have come to the conclusion that your host sucks, which I assume you came to hours (and hours) ago.

I wish I could help more, I will watch this thread though and offer any further info I can gleen. I am used to setting up a new connection, typing in the host, username and password setting a few other params and off we go.

Haven't had this much trouble before but I also haven't worked with your host before. ;)

txbakers

3:54 am on Jul 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've used mySql-Front which was easy to get up and runnng.

ScottM

11:51 pm on Jul 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm running a dynamic site my friends...!!!

Yeah baby! /Austin Powers

Finally got an e-mail back from my host...it seems you need to log onto your server via telnet BEFORE you log into your database server. Nothing in the instructions about that...

Thanks guys for all the help!

jatar_k

3:46 pm on Jul 12, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



glad you sorted it ScottM