Category : mysql

I have created get_data(id) and update_data() function in item.js file and corresponding get_data.php and update_data.php files. In my code get_data(id) function is working perfectly but update_data()is not updating the value in database. It seems like function is not calling update_data.php. I’ve tried implementing ajax and php for the first time, Please help me to figure ..

Read more

Hello i have a docker container running which has my laravel app, i’m using my database from my local machine. I dont have extra container for my DB. But unfortunately i cannot connect my docker container with my mysql DB. Here is the docker file FROM ubuntu:bionic RUN apt-get update && apt-get -y upgrade && ..

Read more

I have freshly created laravel application which i am trying to connect to remote database but i’m getting an error. SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = tomsin1 and table_name = migrations and table_type = ‘BASE TABLE’) My .env file DB_CONNECTION=mysql DB_HOST=stud.if.ktu.lt DB_DATABASE=tomsin1 DB_USERNAME=tomsin1 DB_PASSWORD=ooShen4ooPaechad Source: ..

Read more

First of all, I know there are tools like SymmetricDs and Replications through Master-Slave database configuration, but I deemed that both such solutions are "incompatible" with the nature of the project I’m on. I’m working on a PHP-based Point-of-sale system for a client. The system will be installed on many computers across many stores (each ..

Read more