Jump to content
Sign in to follow this  
Twango

MySQL Connect thru Ubuntu Terminal?

Recommended Posts

Hey, I need this program in the Ubuntu terminal to connect to MySQL.When I use $this->writeOutput("Connecting too MySQL database...", "INFO"); $this->mysql->connect("-----", "-----", "----"); $this->writeOutput("PAUSE"); $this->writeOutput("PAUSE"); $this->writeOutput("PAUSE"); It doesn't work, it echos "Connecting too MySQL database..." and then nothing else, it just goes back to wanting me to enter a command.Any ideas?Using XAMPP (LAMPP)

Share this post


Link to post
Share on other sites

Make sure error reporting is on: ini_set('display_errors', 1);ini_set('html_errors', 0);error_reporting(E_ALL); If you don't see anything then you might need to add error checking to your mysql object.

Share this post


Link to post
Share on other sites

I didn't write this code... so what do you mean by If you don't see anything then you might need to add error checking to your mysql object. ?

Share this post


Link to post
Share on other sites

I mean that if you don't see error messages after adding the code I showed, then the mysql object that the code is using may need to be modified to do error checking if it isn't doing that already. I didn't write that code either, so I can't tell you anything about the mysql object you're using.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...