Hi there,
I am working my way through my first ever PHP and MySql project and I have hit a wall.
I installed MySql separately and then later I also installed Xampp. When I try to use MySql with command prompt (just to work through some tutorials I am doing) I can create and modify databases no problem - great! However, these databases are not available to me through Xampp and thus I cannot query them with PHP. I believe the problem is that I have two MySql's on my machine - one stand a lone one, and one installed with Xampp. When I use command prompt to mess around with MySql, I am using the stand-alone installation. When I try to use php to query the database, it is looking at the MySql installed with Xampp and apache etc.
That is my understanding, which may be woefully incorrect. Can someone help me out? I want to be able to use command prompt with MySql in order to complete this tutorial and get a better understanding of what is happening but at the moment...I have hit a wall as I cannot seem to get php to talk to the 'right' MySql or database location or whatever. How do I get at the 'other' mysql with command prompt?
Thanks so much for listening to this noob and his (probably) ridiculous and hilarious stumbling around in the dark!