Jump to content

[SOLVED] MySQL starts? Now what?


Skipjackrick

Recommended Posts

So, I installed MySQL version 5.1, Apache 2.2, and php 5 on Windows XP.

 

I am trying to use phpmyadmin and it doesn't work.  I dropped the phpmyadmin files in my root directory and opened up the phpmyadmin/index.php file and I get this error.

 

phpMyAdmin - Error

Cannot load mysql extension. Please check your PHP configuration.

 

Here are a few questions.

 

How do I know my MySQL is working properly?  Is there a way to test it?

 

I tested php and it works fine using a test program.  Next, I need to create a database and define users, and passwords, tables etc in MySQL but I have no idea how to do this using mysql.  I have always done it using phpmyadmin through the web.  I am trying to install this locally on my computer so I can test things faster. 

 

What do I edit in my PHP configuration?

 

Can anybody help me out?

Link to comment
Share on other sites

How do I know my MySQL is working properly?

 

Connect to it via its command line interface. Open cme.exe and type...

 

mysql

 

Next, I need to create a database and define users, and passwords, tables etc in MySQL but I have no idea how to do this using mysql.  I have always done it using phpmyadmin through the web.

 

This can all be done via the same command line interface, most people prefer however to have some point and click option.

Link to comment
Share on other sites

 

This can all be done via the same command line interface, most people prefer however to have some point and click option.

 

Yeah, that's what I need.  I've been trying to install phpmyadmin.

 

I believe mysql is working properly because I can pull it up in a command prompt.

 

what would be the command to create a db?

 

Same as Php?

 

mysql_create_db("sharkathon") or die(mysql_error());

 

Nope apparently not.

Link to comment
Share on other sites

Same as Php?

 

mysql_create_db("sharkathon") or die(mysql_error());

 

Nope apparently not.

 

mysql_create_db is a php function not a command of any kind.

 

The mysql command line interfaces expects sql statements and simple commands. It shows you a help message when you first login.

 

CREATE DATABASE foo;

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.