I work through the open server, which is naturally running) The database is simply not created in phpmyadmin

code

Closed due to the fact that off-topic participants D-side , Alexey Shimansky , aleksandr barakin , Grundy , Streletz 9 May '17 at 20:42 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reasons:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Grundy, Streletz
  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - D-side, Alexey Shimansky, aleksandr barakin
If the question can be reformulated according to the rules set out in the certificate , edit it .

2 answers 2

Replace dashes with underscores in constants:

DB_HOST DB_USER DB_PASSWORD 
  • Made, all the same there are no database databases - Eugene
  • Before new mysql, remove the @ symbol and tell what error it gives to exit instead of "Error ..." by writing $mysqli->connect_error - Yaroslav Molchan
  • By the way, did you also remove hyphens anywhere in constants? - Yaroslav Molchan
  • So you do not display anything, like this: if ($ mysqli-> connect_error) {die ("Error:". $ Mysqli-> connect_error); } - Yaroslav Molchan

The point was that I did not update my site. Because of this, no databases were added.