I have created an App Service and SQL Database(created new & blank sql db) on Azure to install OctoberCMS. I have got as far as the Database install page and after inputting my credentials I created earlier when creating the DB and I get an error saying my new database is not blank.
Database "DatabaseName" is not empty. Please empty the database or specify another database.
There is a problem with the specified Database configuration.
I have been playing around with various configuration bits on azure for quite a while now and I'm just tearing my hair out trying to work it out. Any help would be greatly appreciated and if any more info is needed let me know.
I was able to install to Azure Web App and Azure Database for MySQL. High level steps are:
1. Create Azure Web App, ensure App settings are set to use PHP 7.0 or
higher
2. Deploy code through Kudo Zip Deployment (or whatever method you are comfortable)
3. Create Azure Database for MySQL
4. Browse to Azure Database for MySQL -> Connection Security
5. Click + Add client IP
6. Allow Access to Azure Services = ON
7. Enforce SSL Connection = DISABLED
8. Use whatever tool you like to create MySQL DB, I used MySQL Workbench.
9. Browse to https://<yourwebapp>.azurewebsites.net/install-master/install.php
10. Use info from Azure Database for MySQL -> Overview to fill in DB values
Reference:
https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#deploy-zip-file
Related
I have recently joined a project that uses AWS EC2 to deploy a frontend in NodeJS and a backend in Laravel linked to a phpMyAdmin database. My question is simple but I have not found the way to do it despite litteral hours of research.
How can I launch the backend locally and use the corresponding database?
I should add that the database seems to be automatically generated by the Laravel backend and it contains a folder of "mutations".
I am relatively new to php, VMs and Linux overall.
Thank you for your help
This project is probably using mysql or mariadb as database engine.
You must install the engine and export all of data from server and import it in your local database.
If database is on server and you want to connect to that database, it depends on security mechanisms. You must expose the db engine's port in the server and changing your laravel config to use that host for database connection. But I don't recommend that!
If you just want to run backend for personal tests, just setup backend and database engine and run migrations. I can't help you with this step cause I don't know how are deploy operations in your team. If you provide more information, we can help better.
I want to "use Google Cloud SQL Proxy to connect to another vendors database"
(Vendor's database is not stored in GCP, It's simple mysql database hosted in another server)
since I have to update data in vendor's database, my project stored in GCP (hosted separate from vendor's) so:
Is there anyway to connect to external database from GCP app (Laravel 5) Or any other way to solve it except developing web APIs (vendor won't prepare us the APIs since some contract/budged reasons) ?
After I tried to connect to the external DB (set connection in both .env and config/database.php), then the error message alert like:
Access denided #'cloudsqlproxy'
PS. My project can connect to vendor's database as usual from localhost but after deploy to GCP then 'cloudsqlproxy' error's occur.
I'm a newbie one for GCP so
thank you for all community's help,
I create an app in heroku with the ClearDB add-on and PHP as language. Following the Heroku-ClearDB documentation guidelines I try to upload and existing localhost-DB created in MySQL with PHPMyAdmin ->
I execute in the console:
heroku addons:add cleardb:ignite --fork=mysql://user:pw#localhost/db_name
and everything looks fine but when I go to my app in heroku and I select the DB in the Dashboard the DB is empty.
What I am doing wrong?
Thanks.
I'm pretty sure the --fork option tries to download the database from the ClearDB side and it can't get access to your local database - it's designed to fork databases from a globally available location.
You should copy the database manually via dump and restore as described in this answer: https://stackoverflow.com/a/7111224/6678.
I have a deployed Cloud SQL Database instance running right now and it works fine. I am able to access and use it via my PHP Google App Engine app. I also have a local SQL Database for development.
Locally, I have made some changes to the structure of the database (added new columns) and would like to push those changes to the deployed app.
When I try to do this via the documented method on the App Engine site, I get an error saying the import failed for an unknown reason.
I am using a .sql dump made by PhpMyAdmin and have done this successfully for the initial import. I made sure to include USE DATABASE NAME in the dump.
Any ideas as to why it's failing? What is the best way to update a Cloud SQL Database? Thanks a lot!
An easy way is to request an IP, whitelist the IP you are connecting from (link) and use the MySQL client (link). Over IP you can also use GUI tools like MySQL Workbench, Toad, SQuirrel SQL and others (link).
You can set up phpMyAdmin as a different version of your application using the instructions here: https://gae-php-tips.appspot.com/2013/05/26/setting-up-phpmyadmin-on-app-engine/ That would probably be the easiest way of updating a Cloud SQL database...
Not sure if what I am attempting to do is possible or not. I just launched my very first EC2 instance running Ubuntu 12.04 and successfully installed Laravel 4. I have the database working just fine on the EC2 instance and I am able to connect to it with MySQL Workbench on my local machine using a .pem SSH key.
I will be using EC2 to handle certain aspects of a product that I am developing to ensure improved reliability - client side users will be interacting with this primarily through CURL. I want to be able to have my non-EC2 website, also running Laravel 4, use the MySQL database that I set up on my EC2 instance.
I tried changing my app/config/database.php file to include the EC2 instance IP address and MySQL credentials, when Laravel attempts to connect it returns a timeout error.
I modified my.cfn and commented out bind-address = 127.0.0.1, I do not seem to have the skip-network that I have seen mentioned. Still no joy.
Any suggestions?
In side MySQL (PhpMyAdmin if you installed it) -> Users overview -> Edit your user with Host is
%
That is mean, you can connect to MySQL in anywhere with command
mysql_connect($IpOfYourHost, $UserAbove, $Password)
Maybe this helps you. :)
Resolved
I changed bind-address to 0.0.0.0, created a new MySQL user - 'user'#'%', and had my host whitelist the IP. Done!