catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

SQLSTATE[HY000] [2002] No handler for this scheme #673

Closed thecobe closed 6 years ago

thecobe commented 6 years ago

Hi i've a vps on dreamhost and pdo seems workinkg page returned this error

Fatal error: Uncaught exception 'Exception' with message 'SQLSTATE[HY000] [2002] No handler for this scheme'

What could it be? thanks

greensunrise commented 6 years ago

What version of medoo are you using ?

thecobe commented 6 years ago

Hi

Version is 1.4.5

Bye

Marco

From: Ram Krishna Banstola [mailto:notifications@github.com] Sent: mercoledì 29 novembre 2017 11:05 To: catfan/Medoo Medoo@noreply.github.com Cc: thecobe belli.marco@gmail.com; Author author@noreply.github.com Subject: Re: [catfan/Medoo] SQLSTATE[HY000] [2002] No handler for this scheme (#673)

What version of medoo are you using ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/catfan/Medoo/issues/673#issuecomment-347811805 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEvxPvjFI-t0IsNPBdV2DWUtmnlEUlpks5s7SxcgaJpZM4QtmvX .

thecobe commented 6 years ago

Hi i've uploaded version 1.5.1, same error this is phpinfo http://ordersmanager.macronstoregrandemilano.com/phpinfo.php bye Marco

On Wed, Nov 29, 2017 at 11:27 AM, Marco Belli belli.marco@gmail.com wrote:

Hi

Version is 1.4.5

Bye

Marco

From: Ram Krishna Banstola [mailto:notifications@github.com] Sent: mercoledì 29 novembre 2017 11:05 To: catfan/Medoo Medoo@noreply.github.com Cc: thecobe belli.marco@gmail.com; Author author@noreply.github.com Subject: Re: [catfan/Medoo] SQLSTATE[HY000] [2002] No handler for this scheme (#673)

What version of medoo are you using ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/catfan/Medoo/issues/673#issuecomment-347811805, or mute the thread https://github.com/notifications/unsubscribe-auth/AFEvxPvjFI-t0IsNPBdV2DWUtmnlEUlpks5s7SxcgaJpZM4QtmvX .[image: Image removed by sender.]

thecobe commented 6 years ago

Hi did you checked my issue? thanks

greensunrise commented 6 years ago

Please do not put your phpinfo like this in public. I am is it medoo that produce this error? Can you put stacktrace instead if you can because i can not produce the same error on my machine and you have not told what you are trying to do?

thecobe commented 6 years ago

Hi application is working for me too in my local machine But when i published it i have this error

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No handler for this scheme' in /home/mysite.com/Classes/Medoo.php:239 Stack trace: #0 /home/mysite.com/Classes/connection.php(38): Medoo\Medoo->__construct(Array) #1 /home/mysite.com/orders/orders.php(3): require_once('/home/ordersman...') #2 {main} thrown in /home/mysite.com/Classes/Medoo.php on line 239

i attached my connection file this is how i call it <?php require '../Classes/connection.php'; ?>

and this is erro query <?php $clubs = $database->select("orders", [ "[><]club" => ["id_club" => "id"] ], ["club.description (club_description)", "orders.id (order_id)" ]); ?>

connection.txt

greensunrise commented 6 years ago

It clearly says this

// [optional] MySQL socket (shouldn't be used with server and port) 'socket' => '',

Then why do you use this when you are using server and port both? . Please remove that socket option. And try again.

catfan commented 6 years ago

Is it problem solve after checking out the configuration?

thecobe commented 6 years ago

Hi Yes it's solved Thanks Bye Marco

Il ven 23 mar 2018, 20:56 Catfan notifications@github.com ha scritto:

Is it problem solve after checking out the configuration?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/catfan/Medoo/issues/673#issuecomment-375781272, or mute the thread https://github.com/notifications/unsubscribe-auth/AFEvxGTdxFCG8-pAhQFxwH1-8y-cb4peks5thVOCgaJpZM4QtmvX .