How to execute PHP code with MySQL through command line?

34
January 12, 2019, at 04:40 AM

I am trying to execute my PHP script through command line using below command:

c:\xampp\php\php.exe c:\xampp\htdocs\myproj\subscribe.php

It does execute, but it doesn't connect to MySQL. Only PHP script is executed but MySQL queries does not work.

READ ALSO
I want to connect between MYSQL 5.7 with Crystal Rport using Windows Application framework 4

I want to connect between MYSQL 5.7 with Crystal Rport using Windows Application framework 4

Need a help for what are the drivers and version to install and connect MYSQL server 57 with Crystal Report for Windows Application Framework 4

28
SELECT random rows with flexible search query

SELECT random rows with flexible search query

I am trying to create a Flexible Search that retrieves 10,000 random rows out of 3MTried with different syntax like LIMIT, but i cannot make it work, I need to add this query to a Groovy Script

42
how to access mySQL server in kubernetes

how to access mySQL server in kubernetes

I have created a MySQL deployment in kubernetes and exposed it as nodes-portI can access it from inside the cluster using kubectl run -it --rm --image=mysql:5

58