If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
These forums remain online primarily for archival purposes. While posting is still possible, it should not be considered a means for support. Please login to our portal and submit a ticket if you require assistance and we'll be more than happy to assist you.
Regular updates are posted to our blog and we will continue to post important notices to the Script Security forum section here. You can subscribe to that forum to automatically receive notifications.
Does anyone know if it's possible to connect to MySQL from a PHP webpage before the DNS has propagated? I keep getting MySQL "No database selected" errors and I'm wondering if my PHP connection string hostname needs to be something other than "localhost" because the DNS hasn't propagated yet.
Thanks for the ideas guys, but it's not either of those. The same exact code works fine on my local machine, and the connection string does specify username_databasename. I have a lot of other php/mysql sites on my reseller account and they all work fine, and the only difference between them and this new site I'm trying to get working is that their DNS's have propagated. Hmm...does anyone know what the absolute (unpropagated) URL is for the MySQL server instead of "localhost"? Maybe that could help?
Figured it out. Of course it was a stupid mistake on my part. In cpanel I'd created the database, created the user, but I'd forgotten to add the user to the database. Dur.
Comment