۴۰۴ Not Found! قیمت ها به ۴۰۳ برگشت! به مدت محدود!
بزن بریم!سلام
من تازه لاراول رو شروع کردم
اطلاعات اتصال رو هم چک کردم درسته ولی ارور میده
Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_schema = laravel_local and table_name = migrations and table_type = 'BASE TABLE')
at C:\xampp\htdocs\laravel.local\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
667| // If an exception occurs when attempting to run a query, we'll format the error
668| // message to include the bindings with SQL, which will make this exception a
669| // lot more helpful to the developer instead of just the database's errors.
670| catch (Exception $e) {
> 671| throw new QueryException(
672| $query, $this->prepareBindings($bindings), $e
673| );
674| }
675|
1 C:\xampp\htdocs\laravel.local\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("could not find driver")
2 C:\xampp\htdocs\laravel.local\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=laravel_local", "root", "", [])
@Hoseinmohammad2381
فکرک نم لینکوس داری استفاده میکنی
اگر اینطوره باید با sudo بیای و sql را به apache بشناسونی تا مشکلت رفع بشه
# PHP 7.1
sudo apt install php7.1-mysql
# PHP 7.2:
sudo apt install php7.2-mysql
# PHP 7.3
sudo apt install php7.3-mysql
# PHP 7.4
sudo apt install php7.4-mysql
# PHP 8
sudo apt install php-mysql
سلام
@yk5742g نه عزیز دل
رو ویندوز ران کرده و مشکلش باید از پوشه کانفیگ و فایل دیتابیس باشه ..
@Hoseinmohammad2381
فایل .env
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:dRnTMkMM5qVP9EN7TQX/ALcQ0/G4KgdIfVDko8jZteU=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_local
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟