|
Re: day3 mysql, netbeans, doctrine [message #98014 is a reply to message #98013 ] |
Sun, 25 April 2010 19:54   |
PurpleFrog Messages: 20 Registered: March 2008 Location: Paris |
Junior Member |
|
|
Hello,
Insert a file with <?php phpinfo(); ?> in your web directory and search for pdo in the resulting page.
If you find nothing you have to add pdo and pdo-mysql driver to php.
If you find those, you may have to change the location of the socket of mysql in the pdo section of php.ini.
hope that help.
---PurpleFrog
Lost everywhere
|
|
|
|
Re: day3 mysql, netbeans, doctrine [message #98023 is a reply to message #98018 ] |
Mon, 26 April 2010 01:30   |
PurpleFrog Messages: 20 Registered: March 2008 Location: Paris |
Junior Member |
|
|
The socket is not the directory of the executable files of the application.
Search for mysqld.sock in your computer and replace the two lines with it location :
pdo_mysql.default_socket=[...]/mysqld.sock
mysql.default_socket =[...]/mysqld.sock
*edit* There is no socket connection in windows, only tcp/ip
[Updated on: Wed, 28 April 2010 01:01] ---PurpleFrog
Lost everywhere
|
|
|
|
Re: day3 mysql, netbeans, doctrine [message #98083 is a reply to message #98013 ] |
Mon, 26 April 2010 22:58   |
PurpleFrog Messages: 20 Registered: March 2008 Location: Paris |
Junior Member |
|
|
I don't have mysql installed on a windows so it's hard to tell.
Maybe try with mysql.sock.
If you don't obtain anything make sure mysql is running.
---PurpleFrog
Lost everywhere
|
|
|
Re: day3 mysql, netbeans, doctrine [message #98094 is a reply to message #98013 ] |
Tue, 27 April 2010 10:19   |
halfer Messages: 9535 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
@katwer - did you confirm that you have MySQL loaded with phpinfo, as per PurpleFrog's advice? That will confirm it is loaded into the web server.
Also please do "php -m" at the command line, to make sure PDO and PDO_MYSQL are available for the cli too.
Remember Palestine
|
|
|
|
Re: day3 mysql, netbeans, doctrine [message #98172 is a reply to message #98169 ] |
Tue, 27 April 2010 22:04   |
PurpleFrog Messages: 20 Registered: March 2008 Location: Paris |
Junior Member |
|
|
halfer ask you the good question.
pdo_mysql is missing.
---PurpleFrog
Lost everywhere
|
|
|
|
|
Re: day3 mysql, netbeans, doctrine [message #98192 is a reply to message #98013 ] |
Wed, 28 April 2010 11:19   |
halfer Messages: 9535 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
If you do "php -i" you'll discover the location that PHP is expecting for the CLI, and it may be different to the php.ini you have now. If you have nothing at this location, create an empty text file in its place, and start adding php directives there.
Remember Palestine
|
|
|
|
|
|
|
Re: [SOLVED] day3 mysql, netbeans, doctrine [message #103452 is a reply to message #98013 ] |
Tue, 03 August 2010 08:29  |
1qaz Messages: 1 Registered: August 2010 |
Junior Member |
|
|
Hi.
I'm using EasyPHP v5.3.2 and I had the same problem. The php.ini MUST be placed in the C:\WINDOWS dir with 1 modification:
- open php.ini and search for "extension_dir". If you find something like this:
extension_dir = "$(path)\php\ext\"
then you must replace <<$(path)>> with the full installation path to your EasyPHP folder. For example:
extension_dir = "C:\Program Files\EasyPHP-5.3.2i\php\ext\"
Otherwise you will get some errors / warnings when trying to execute any doctrine & mysql related commands, erros which will bug your head. Trust me
--------------------------
by natural_vlad
--------------------------
|
|
|