What is the maximum length of a MySQL5 database name?
The following table describes the maximum length for each type of identifier. Identifier Maximum Length (characters) Database 64 Table 64 Column 64 Index 64 Stored Function or Procedure 64 Trigger 64 View 64 Alias 255 Source: MySQL documentation.