Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lara_Love's avatar

upload mysql database to hosting cpanel but it has error

i want upload my mysql database to database hosting cpanel but it has error

Error

Static analysis:

11 errors were found during analysis.

    Unexpected character. (near "{" at position 345)
    Unexpected beginning of statement. (near "doctype" at position 2)
    Unexpected beginning of statement. (near "html" at position 10)
    Unexpected beginning of statement. (near "html" at position 17)
    Unexpected beginning of statement. (near "lang" at position 22)
    Unexpected beginning of statement. (near ""en"" at position 27)
    Unexpected beginning of statement. (near "dir" at position 32)
    Unexpected beginning of statement. (near ""ltr"" at position 36)
    Unexpected beginning of statement. (near "head" at position 44)
    Unexpected beginning of statement. (near "meta" at position 53)
    Unrecognized statement type. (near "charset" at position 58)

SQL query:

<!doctype html>
 <html lang="en" dir="ltr">
 <head> <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 <meta name="referrer" content="no-referrer"> 
<meta name="robots" content="noindex,nofollow">
 <meta http-equiv="X-UA-Compatible" content="IE=Edge">
 <style id="cfs-style">html{display: none

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '<!doctype html>
<html lang="en" dir="ltr">
<head>
  <meta charset="utf-8">
  ...' at line 1

whats this error?

0 likes
8 replies
Lara_Love's avatar

It's not in my code's


<!doctype html>
 <html lang="en" dir="ltr">

Sinnbeck's avatar

Sounds like your sql file is really an html file

Lara_Love's avatar

hello @Sinnbeck why? i export it from database local but when i want to export download it has export failed error .

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@LoverToHelp Ok try again, and check it with notepad. Something must have gone wrong

1 like

Please or to participate in this conversation.