i just got a new laptop and i am in the process of transferring all my files..
on my previous desktop, i had installed mysql and php and had a mysql database up and running
i want to export that whole database into a .sql file, email it to myself and then import the .sql file on my laptop
this is all happening on my local testing apache server..is this possible? how should i go about doing it?
ok i have successfully imported my database to my laptop. i have also downloaded all my site files through ftp...but i have one new problem
i'm using apache and my site output is perfect on localhost...the problem is related to mysql
on localhost, i have created a login page (login.php) which is supposed to redirect me to account.php once successfully logged in -> i put my username and pass (which is stored in mysql) -> i'm NOT able to log in -> usually an error is shown for incorrect information, but in this case, the page just reloads...the url shows /account.php...so it processed the request but didn't proceed.
the site checks if someone is logged in through sessions on each page, so i thought sessions might be the problem...i went to php.ini and noticed that sessions were working fine
then i thought, maybe my php code isn't connecting with the mysql...i made a testing page to capture some fields from the database and it worked!
so i'm really lost here...all the files i downloaded through ftp work fine online...just causing problems on localhost
helpp (thanks for resolving the import/export problem, but this is worse)
Since you say that your able to access fields from the database, I do not believe this is a "mysql" issue. It sounds like there is some differences in the php or apache settings on your laptop compared to the server.
Bookmarks