Need Help With PHPMyAdmin!

Hi,

I'm following along with this tutorial for installing PHPMyAdmin:

http://www.adobe.com/devnet/dreamweaver/articles/settingup_php04.html

Per Step 8, when I go to

http://localhost/phpmyadmin/setup/index.php

I get this:

Bzip2
Bzip2 compression and decompression requires functions (bzopen, bzcompress) which are unavailable on this system.

ZIP
Zip decompression requires functions (zip_open) which are unavailable on this system.
Insecure connection

Force SSL connection
This option should be enabled if your web server supports it

Servers
There are no configured servers

Anyone have any idea what the heck I'm doing wrong?

Thank you.

MacBook Pro, Mac OS X (10.5.8)

Posted on Feb 7, 2010 12:51 PM

Reply
61 replies

Feb 7, 2010 1:17 PM in response to Charles Minow

Hey Charles,

What's it been? Couple of hours since you answered my last question? Should I expect a bill at this point? 🙂

I might just give the Sequel Pro a shot.

One thing. I tried entering http://localhost/phpmyadmin/ into a browser, and it brought me to a Welcome to PHPMyAdmin page, asking for a Username and Password. Also said, Cannot load mcrypt extension. Please check your PHP configuration.

Does that sound like I'm on the right track?

Feb 7, 2010 1:31 PM in response to MJN1812

MJN1812 wrote:
What's it been? Couple of hours since you answered my last question? Should I expect a bill at this point? 🙂


Na, no bill, not yet anyway: the weather's crummy outside and I'm a bit bored is all.

I might just give the Sequel Pro a shot.


I strongly encourage it. If you have phpMyAdmin on your computer, if you're not careful how it's set up, it can be a way in to your databases. I see people looking for phpMyAdmin in the logs on my servers all the time. If you're installing on your own computer and it's always behind a firewall it's not such a big deal.

One thing. I tried entering http://localhost/phpmyadmin/ into a browser, and it brought me to a Welcome to PHPMyAdmin page, asking for a Username and Password. Also said, Cannot load mcrypt extension. Please check your PHP configuration.

Does that sound like I'm on the right track?


Well, sort of. I'm guessing the errors you're seeing relating to BZip2, ZIP, and mcrypt are because you're using the default PHP install, which doesn't have a very rich set of extensions or modules installed. I'm not that familiar with phpMyAdmin, so I don't know if those errors are important. I'd guess the most important one, that no servers are configured, is just because you haven't gotten the configuration done.

You can install a new PHP5 that has that stuff bundled in, but that opens up a whole new can of worms with Apache.

charlie

Feb 7, 2010 3:06 PM in response to Charles Minow

Started doing some reading on Sequel Pro, and came upon this:

It does have one major drawback when compared to phpMyAdmin however, which means we’ve rated it down a little unfortunately. The ability to import and export databases as SQL statements. Part of the way we develop websites is to develop locally, using a development database. When the site is to be uploaded and subsequently made live, it’s quite often that we like to also use the database (for example, if we’ve developed a WordPress website or a CS-Cart website, then naturally we’d want our content to be uploaded too). CS-Cart is especially useful for this because none of the URL based configuration is stored in the database, so we can develop the shop locally and then when we’re ready, upload the lot and export/import the databases. Sadly, to do that we still have to use phpMyAdmin.

As I'm sure you've figured, I'm brand new to PHP, etc., so any thoughts on what the reviewer said about it?

Feb 7, 2010 4:13 PM in response to MJN1812

MJN1812 wrote:
As I'm sure you've figured, I'm brand new to PHP, etc., so any thoughts on what the reviewer said about it?


Yeah, what they're talking about is no longer relevant. The newest version, 0.9.7, came out after that review was written and it has the functionality they're talking about.

Basically, there's a program that comes with MySQL called mysqldump that you can use to dump whole databases or tables. Depending on the options you give it, it'll dump the necessary SQL statements used to create all the tables as well as all the contents. That can be really handy, like they said in their review. But it's available now in Sequel Pro, so that's no problem.

And using mysqldump isn't all that hard, anyway, if you did need to use it. In fact, knowing how to use it can be really good for backing up your databases down the road when you have important data. I use mysqldump in cron jobs to back up databases all the time on my servers.

charlie

Feb 8, 2010 10:31 AM in response to etresoft

From the thread:

What you should do is edit php.ini file. it locates in /etc.
use any text editor to open /etc/php.ini file, find "mysql.default_socket =", you will see this was set to /var/mysql/mysql.sock. change it to /tmp/mysql.sock.

If you use mysqli then go to "mysqli.default_socket =" and set it to /tmp/mysql.sock too.

First Question: *I found the "mysql.default_socket =", but where do I find that it's set to/var/mysql/mysql.sock?*

Second Question: *What is the difference between mysql, and mysqli?*

Went to try Sequel Pro, and wondering if *Port 3306 is safe/secure? And I'm assuming that I can use local host until such time that I go to upload my site to the actual web host?*

Thanks again!

Feb 8, 2010 11:57 AM in response to etresoft

etresoft wrote:
I don't seem to have a php.ini file at all. I guess the version that ships with Snow Leopard doesn't need it. Try deleting, or at least moving, php.ini somewhere else.


There should be a php.ini.default in /etc. The usual thing is to copy that default to php.ini:

sudo cp /etc/php.ini.default /etc/php.ini


and then make your changes in there.

charlie

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Need Help With PHPMyAdmin!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.