<p dir="ltr">It's no so much the database name that causes the problem as I'm only using a simple name it's the hyphen in the connection string for the fqdn. </p>
<p dir="ltr">I'll have a look at this on Monday when I'm back in the office and post back my results :-) </p>
<p dir="ltr">Thanks<br>
Brian </p>
<div class="gmail_quote">On 26 Jan 2013 17:57, "Paul Swanson" <<a href="mailto:Paul.Swanson@harlandfs.com">Paul.Swanson@harlandfs.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The script that creates the database needs to have
<span>backticks</span> (</span><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"> `
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">) around the database name. The
<span>backtick</span> character is on the same key as the ~ character.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="https://www.google.com/search?q=mysql+hyphen+database+name" target="_blank">https://www.google.com/search?q=mysql+hyphen+database+name</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You might also need to alter the scripts that connect to the database to include
<span>backticks</span> around the database name.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#365f91">Paul Swanson<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Internal Business Systems Analyst<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Internal Business Intelligence<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Harland Financial Solutions<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959"><a href="tel:%28800%29%20274-7280%20Ext.%202462" value="+18002747280" target="_blank">(800) 274-7280 Ext. 2462</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959"><a href="mailto:Paul.Swanson@harlandfs.com" target="_blank">Paul.Swanson@harlandfs.com</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>
 [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Brian Chivers<br>
<b>Sent:</b> Saturday, January 26, 2013 2:27 AM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Problem with installer<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p>Yes, I can use localhost but then on the last page where you setup all the settings such as url, admin password etc it fails at that point as well as it tries to store this in the database which again uses the fqdn and errors on the hyphon.
<u></u><u></u></p>
<p>My boss uses php a lot so he might be able to help me sort it on this page but I'm just a little concerned that db calls are used on other pages that will cause problems when Xerte is in use.
<u></u><u></u></p>
<p>What I'll try and do is sort it on this page and then post how we fixed it to the developers list to see where else it might need fixing
<u></u><u></u></p>
<p>Brian <u></u><u></u></p>
<div>
<p class="MsoNormal">On 26 Jan 2013 10:19, "Ron Mitchell" <<a href="mailto:ronm@mitchellmedia.co.uk" target="_blank">ronm@mitchellmedia.co.uk</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Just a quick check are you putting that FQDN for the MySQL host?
 Is the db on the same server as your XOT install? If so just use localhost in the mysql host field but run setup from the FQDN.</span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><a name="13c78019c46dd1ca_13c765e995c4af80__MailEndCompose"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></a><span></span><span lang="EN-GB"><u></u><u></u></span></p>

<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal">
<b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Brian Chivers<br>
<b>Sent:</b> 25 January 2013 21:37<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Problem with installer</span><span lang="EN-GB"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB"> <u></u><u></u></span></p>
<p><span lang="EN-GB">I realise that one is supposed to to fail but this problem is after this test that it fails.
<u></u><u></u></span></p>
<p><span lang="EN-GB">I'll contact the developers list for help and to offer help.
<u></u><u></u></span></p>
<p><span lang="EN-GB">Thanks <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB">On 25 Jan 2013 21:02, "Pat @ Pgogy" <<a href="mailto:xerte@pgogywebstuff.com" target="_blank">xerte@pgogywebstuff.com</a>> wrote:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">One of the test scripts is designed to fail, but if you can make /setup better feel free too.<br>
<br>
You might also like the dev list as that is more techie<br>
<br>
Pgogy Webstuff - <a href="http://www.pgogywebstuff.com" target="_blank">http://www.pgogywebstuff.com</a><br>
Makers of web things of a fair to middling quality<br>
<br>
On 25 Jan 2013, at 15:46, Brian Chivers <<a href="mailto:brian@portsmouth-college.ac.uk" target="_blank">brian@portsmouth-college.ac.uk</a>> wrote:<br>
<br>
> I've just tried to install Xerte toolkit 1.9 onto a freshly setup Ubuntu 12.04 LTS server running the latest mysql / php stack and have run into a problem with the installer php scripts.<br>
><br>
> The server has a FQDN of <a href="http://xerte.portsmouth-college.ac.uk" target="_blank">
xerte.portsmouth-college.ac.uk</a> and when I run setup/mysql_test.php on the test where it checks connectivity I get this error<br>
><br>
> Due to the following error - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-<a href="http://college.ac.uk" target="_blank">college.ac.uk</a>' at line 1 - 1064 we cannot
 ascertain whether we can create this database<br>
><br>
> It would appear that it isn't escaping the FQDN correctly causing the mysql statement to fail.<br>
><br>
> If I rename the server to use our secondary domain <a href="http://tpc.ac.uk" target="_blank">
tpc.ac.uk</a> the installer goes through fine so I know there is nothing wrong with the install.<br>
><br>
> I still have the first server so if required I can test altered php files.<br>
><br>
> Thanks<br>
> Brian Chivers<br>
><br>
> _______________________________________________<br>
> Xerte mailing list<br>
> <a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information
 contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
><br>
> This message has been checked for viruses but the contents of an attachment<br>
> may still contain software viruses which could damage your computer system:<br>
> you are advised to perform your own checks. Email communications with the<br>
> University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information
 contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-GB"><br>
<u></u><br>
<u></u><u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><u></u><u></u></p>
</div>
</div>

<br><br>
<br></div>

<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div>