Help Me With PHP, CGI & MySQL!May 14th, 2008 · 1 Comment
Ok well first of all about the test cgi script. You either have to use PHP or Perl but you can’t use both. They are two different programming languages. The second thing is how you named your file. The file extension determine which language interpreter (PHP or Perl) will be invoked. If you want to use PHP, you will need to use the .php extension but if you want to use a Perl script, then you’ll have to use the .pl extension. You’ll also need to have Perl installed if you want to use Perl scripts. Also, there is no need to send the “Content-type” header instruction just to test CGI functionnality. As for the MySQL issue, I would need more detail like where do you get this error message? If you can access MySQL through command line then the service itself is working fine but it doesn’t mean your web server can interact with it. The two databases you see there are created upon MySQL installation. The test database is not necessary but the one named “mysql” is vital to MySQL. Don’t mess with it. Instead you should download and install the MySQL GUI tools from here. It will allow you to manage databases and users. Once you’ve created a new database and associated a user to it, use this PHP script to test connectivity:
Hope this helped! Feel free to comment my answer! Got more questions about web hosting? Send me an email at info at thewebhostinghero.com! Want to receive more tutorials and user experiences like this? Click here to subscribe. Related PostsPosted in Articles | 1 Comment |
Popular PostsLatest PostsLatest Deals & Coupons
Recent Comments
Hosting ReviewsRecent WebmastersTag Cloud
1and1
apache
bluehost
centos
cheap web hosting
control panel
coupon code
coupons
cpanel
dreamhost
godaddy
godaddy vs 1and1
green web hosting
hostdime
hostgator
hostpapa
iis
inmotion hosting
knownhost
linux
lunarpages
mysql
openx
php
reseller hosting
security
shared hosting
system administration
vps
web hosting
web hosting comparison
Web Hosting Comparisons
whm
windows
windows 2008
|
|||||||||
1 response so far ↓
1. Response by : Stephane Brault on Jun 3, 2008 at 9:04 am
I was finally able to reproduce the error 1146.
This is caused by the MySQL Configuration Wizard not using the specified password. In this case you could leave the root password blank upon setup and change it afterward.
I have not had this issue with MySQL 5.0 though.
Leave a Comment