I work through the open server, which is naturally running) The database is simply not created in phpmyadmin
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
- maybe it will be more correct to write here what error it gives? Is there a mistake? - Arsen
- Try out existing examples from coursesweb.net/php-mysql/php-mysql-using-mysqli - Daniel Protopopov
- She just should appear in the list right? image.prntscr.com/image/05d397ecf35b48e38bb4eb3e9d73fd18.jpeg - Eugene
- if there are no errors, then root has no privileges to create a database. - Arsen
|
2 answers
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
- Removed image.prntscr.com/image/a94dff1b59bd4c5b94b3a5838c8acf0a.jpeg There are no errors at all - Eugene
- 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.
|
