Hi there guys
first post and first mess for me :rolleyes: !!
I recently got the italian version of "php mysql novice to ninja", 5th edition by Kevin Yank... so far I just love the book.
I decided to go through the painful process of setting up everything needed in the manual way... I am kind new to linux, so I figured out that could be a good way to learn...
so I set up a linux mint vm on my win7 laptop. the vm works flawlessly, as far as I can see.
I installed mysql, php and apache according to the instructions found at the end of the book.
I can connect to apache server from the host without problems, I tried to execute some simple php script (input name and check, echo the date ... simple things) and they run without problems.
I added a user to connect to mysql from the host (I know it is not really reccomended, but as I told you, it is all about learning) and from the host I can connect to mysql on the vm using mysql workbench.
I hit a wall, thought, when creating my first pdo object, since I get the funny "could not find driver" msg.
I searched both these forums and internet in general for some ideas, but of course the answers are kind of deeper than I can understand. Somewhere I read it is a good idea to echo the result of "phpinfo()", and I did it. there is a section named "pdo", a table whose headers is "pdo drivers"... and the table contains only 1 row, that is "sqlite". funny thing, if I change the php code line I use to create the pdo object, and write sqlite instead of mysql, the error turns from "could not find driver" to "database not found": of course, I did not set up the database under sqlite, but under mysql...
so guys, I can see the description I gave you of the situation is far from complete... but still, can any1 help or point me in the right direction? as I understand, I should "install mysql driver" for php... Did I get it right? and what is the procedure to install them? has any1 tried the manual installation of apache - mysql -php as explained in the book? can any1 give me any tip?
thanx for your attention