could not find driver SQL but migrate works - mysql

I deployed my code to server and migrated the database with command bellow:
php artisan migrate
And everything works fine.
But when I want to access to my url it throws the following exception:
could not find driver (SQL: select * from `...`)
If it cannot find the driver then how it created the tables? Am I missing something.
Also my database works fine when I run
php artisan serve
on my server and access that locally.

Related

vue component in laravel doesnt work only on server

I use a Vue component that gets data from the database (with Axios) and although it works well on the local machine, doesn't work on the server. also, all components which don't need to database, work correctly.
Uncaught (in promise) Error: Request failed with status code 404
Even I test my route path to load some data for the blade from the database and also they don't work,
I exported the database in http://localhost/phpmyadmin and imported it in MySQL on server
then update .env file on a server based on MySQL info on the server
and eventually
php artisan config:clear
php artisan cache:clear
php artisan view:cache
I just tested the imported database, mysql> USE imported_db; SHOW TABLES; and I can see all tables
and my .env file is updated as well

Is there a way to create databases and tables in jawsdb on Heroku deployed app?

I've deployed this homework app locally. It works fine, locally. Once I deploy it to Heroku, and view the logs, I see
Error: ER_NO_SUCH_TABLE: Table 'jzg04w8rh30864yk.burgers' doesn't exist
I've used MySQL Workbench to connect to the Heroku db successfully, but I'm not allowed to even the SELECT command. Workbench tells me:
Error Code: 1142 SELECT command denied to user 'cvhl3g86ycqw6hse'#'96.42.208.204' for table 'user_variables_by_thread'
Repo is located here:
https://github.com/bryanmobrien/burger
I'm a student, so I understand this is probably trivial, but I've searched stack and heroku support to no avail. I believe somehow the database that works fine locally simply isn't being created -or- I just don't know how to access and modify the database and or tables on the Heroku deployed app.
I have had that problem recently (like 1 hour ago) and this worked for me
1- I did export my database from phpmyadmin in sql format
2- I downloaded HeidiSql, inside JaswDB you have a link to donwload it
3- I installed HeidiSql and Configure my data to connect to JawsDB (when you click in JawsDb inside heroku plataform, it says your host, username and password)
Host xxxxx
Username xxxxx
Password xxxxx
After that i found my database name (this will be your jzg04w8rh30864yk), and I clicked in "execute sql file", I copied my sql exported and I pasted there, after that my tables was created
And that were all, I hope that this can help you

SSIS Connection to MySQL when run in Jobagent

I need to use SSIS to copy data from a external MySQL database to another external SQL database. When I run the pacakge in Visual stidio, everything works fine. But when I deploy
to a local Integration services catalog (on local SQL server) and run the package through jobagent, I get the following error:
The AcquireConnection method call to the connectionmanager MySQLDB.com
failed with error code 0xC0014009.
The validation of the ODBC connection to (MySQL) is failing. I am using MySQL ODBC 5.1 Driver. But as stated above, it works when running the same package in Visual studio...
I have plenty of packages running and working in jobagent but none is using a connection other then to SQL server.
What am I missing here with the MySQL Connection?

Cannot connect to Mysql From Rails Application

I am having my application and database hosted in EngineYard. Suddenly my application is down. I am getting this error when I looked into the log
Mysql2::Error: This connection is still waiting for a result, try again once you have the result
I tried to run some read queries from Rails console in Staging. This is working fine. Database queries returns the expected answers.
Also I checked out the Staging branch in local and checked. I could not reproduce the error in my local. So I assume there is no error in the code.
Restarting the App Server worked for me.
Syntax:
ey ssh "/engineyard/bin/app_<appname> restart" -e your_env_name --app-servers
Reference:
Engineyard command line: ey web restart not working

Regenerate YML mapping issue in Symfony 2.4

Running a Symfony 2 project, I have recently made a change in my MYSQL database, and I would like to update my schema and model structure inside my symfony project so I can use the new items that are in it.
This is what I try to do from a running instance in production:
php app/console doctrine:mapping:import --force CoreBundle yml
Here is the error I get:
[PDOException] SQLSTATE[HY000] [2002] Connection timed out
Core/Bundle exists and was already mapped this way by the past
Also note that the server is up and running, doing exchanges with the database
I cannot find a place where to see a more detailed log. Tried to configure the config.yml to add logging for doctrine but it doesn't give me more infos
Thanks in advance
Since I didn't found the source of the problem, I just deployed a new symfony app, connected it to the database and then just generated orm + entities by following the same commands. After that I just copied the /Entity folder and /orm folder and replaced it on my production env. A bit messy but it worked