1

Topic: Connection to MySQL Server by means of PHP the code.

All if who knows greetings that I do not so, on  is installed MySQL Server with exterior white IP on means MySQL Workbench connection transits on hurrah and here script PHP . Prompt if who tried to do such where what rights need to be opened or the file can my.ini on the server correct, all rummaged I can not find.
In advance I thank.

2

Re: Connection to MySQL Server by means of PHP the code.

mysql_ru;
At you an error in the code in 17 line.

3

Re: Connection to MySQL Server by means of PHP the code.

miksoft wrote:

mysql_ru;
At you an error in the code in 17 line.

How you learned where also what error? Very interesting.

4

Re: Connection to MySQL Server by means of PHP the code.

mysql_ru wrote:

it is passed...
How you learned where also what error? Very interesting.

And it  climbed to you on the server and saw that in to legendary 17th line there is an attempt of connection with basis.
Here approximately so
$link = mysqli_connect ("127.0.0.1", "my_user","my_password","my_db");
Here here it is possible to read.
And further the colleague looked in your configuration file php.ini and saw that the extension is commented out.
And the file dll for the extension is not present. And the directory for dll with extensions is specified not that. In general,  all is bad, and tendencies to improving is not viewed in the near future.
If to look in Google here kosher arguing as with it to be lies quite to itself.
And still it is necessary to specify, version PHP at you 5th or 7th, tore Apache on Windows or Linux - actually, it is necessary to begin with it.
But under your comment it is clear that Windows 10, Apache 2.4 and mysql 5.7. Yes?

5

Re: Connection to MySQL Server by means of PHP the code.

Andy_OLAP wrote:

But under your comment it is clear that Windows 10, Apache 2.4 and mysql 5.7. Yes?

From what suddenly?  recently already in the eight . It is necessary to put run.

6

Re: Connection to MySQL Server by means of PHP the code.

vkle wrote:

it is passed...
From what suddenly?  recently already in the eight . It is necessary to put run.

Oh-twist, the author of a subject does not need to put anything run. To it to understand, why at it PHP does not see basis.

7

Re: Connection to MySQL Server by means of PHP the code.

Andy_OLAP;
basis that does not see? There at a connection stage  if to trust the first post:

mysql_ru wrote:

on means MySQL Workbench connection transits on hurrah and here script PHP

It is good still that a veil of privacy of a script slightly opened. And there it is exact not mysql_connect with  error output? wink From here it is bad to see.

8

Re: Connection to MySQL Server by means of PHP the code.

vkle wrote:

Andy_OLAP;
basis that does not see? There at a connection stage  if to trust the first post:
it is passed...
It is good still that a veil of privacy of a script slightly opened. And there it is exact not mysql_connect with  error output? wink From here it is bad to see.

So it we joke with the colleague on a forum "miksoft". Certainly, at the author of a subject mysql_connect and a script which works on PHP 5. And he tries to fulfill it on PHP 7.
more than it is assured.

9

Re: Connection to MySQL Server by means of PHP the code.

Andy_OLAP wrote:

it is passed...
And it  climbed to you on the server and saw that in to legendary 17th line there is an attempt of connection with basis.
Here approximately so
$link = mysqli_connect ("127.0.0.1", "my_user","my_password","my_db");
Here here it is possible to read.
And further the colleague looked in your configuration file php.ini and saw that the extension is commented out.
And the file dll for the extension is not present. And the directory for dll with extensions is specified not that. In general,  all is bad, and tendencies to improving is not viewed in the near future.
If to look in Google here kosher arguing as with it to be lies quite to itself.
And still it is necessary to specify, version PHP at you 5th or 7th, tore Apache on Windows or Linux - actually, it is necessary to begin with it.
But under your comment it is clear that Windows 10, Apache 2.4 and mysql 5.7. Yes?

Thanks very much ! To me helped  with an error as simply the server has been adjusted on sha authorization and in normal php it is not present well or  I do not know it was necessary to make simply simple standard  earned.

10

Re: Connection to MySQL Server by means of PHP the code.

vkle wrote:

Andy_OLAP;
basis that does not see? There at a connection stage  if to trust the first post:
it is passed...
It is good still that a veil of privacy of a script slightly opened. And there it is exact not mysql_connect with  error output? wink From here it is bad to see.

All was very simple I knew in what business but to understand as to correct did not know here to me  helped also all earned!