• <tfoot id='s59kq'></tfoot>
    <legend id='s59kq'><style id='s59kq'><dir id='s59kq'><q id='s59kq'></q></dir></style></legend>

    1. <small id='s59kq'></small><noframes id='s59kq'>

      • <bdo id='s59kq'></bdo><ul id='s59kq'></ul>
      <i id='s59kq'><tr id='s59kq'><dt id='s59kq'><q id='s59kq'><span id='s59kq'><b id='s59kq'><form id='s59kq'><ins id='s59kq'></ins><ul id='s59kq'></ul><sub id='s59kq'></sub></form><legend id='s59kq'></legend><bdo id='s59kq'><pre id='s59kq'><center id='s59kq'></center></pre></bdo></b><th id='s59kq'></th></span></q></dt></tr></i><div id='s59kq'><tfoot id='s59kq'></tfoot><dl id='s59kq'><fieldset id='s59kq'></fieldset></dl></div>

        joomla 2.5 模块 install.mysql.utf8.sql 不工作

        joomla 2.5 in module install.mysql.utf8.sql dosent work(joomla 2.5 模块 install.mysql.utf8.sql 不工作)
        • <bdo id='eQhzl'></bdo><ul id='eQhzl'></ul>

              <tbody id='eQhzl'></tbody>

            <small id='eQhzl'></small><noframes id='eQhzl'>

            <i id='eQhzl'><tr id='eQhzl'><dt id='eQhzl'><q id='eQhzl'><span id='eQhzl'><b id='eQhzl'><form id='eQhzl'><ins id='eQhzl'></ins><ul id='eQhzl'></ul><sub id='eQhzl'></sub></form><legend id='eQhzl'></legend><bdo id='eQhzl'><pre id='eQhzl'><center id='eQhzl'></center></pre></bdo></b><th id='eQhzl'></th></span></q></dt></tr></i><div id='eQhzl'><tfoot id='eQhzl'></tfoot><dl id='eQhzl'><fieldset id='eQhzl'></fieldset></dl></div>
            <legend id='eQhzl'><style id='eQhzl'><dir id='eQhzl'><q id='eQhzl'></q></dir></style></legend>

            <tfoot id='eQhzl'></tfoot>

                • 本文介绍了joomla 2.5 模块 install.mysql.utf8.sql 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想用模块安装外部 sql 文件,我按照这个链接教程 http://docs.joomla.org/J2.5:Creating_a_simple_module/Using_the_Database 但它不起作用.这是我的 xml 和 sql 文件编码.我的错误在哪里?

                  i want to install extranal sql file with module and i follow this link tutorial http://docs.joomla.org/J2.5:Creating_a_simple_module/Using_the_Database but it dose not work. here is my xml and sql file coding. where is my mistake?

                  <?xml version="1.0" encoding="utf-8"?>
                  <extension type="module" version="2.5.0" client="site" method="upgrade">
                  <name>practic_module</name>
                  <author>John Doe</author>
                  <version>1.0.0</version>
                  <description>this is a practice module struckture</description>
                  <files>
                  <filename>mod_helloworld.xml</filename>
                  <filename module="mod_helloworld">mod_helloworld.php</filename>
                  <filename>index.html</filename>
                  <filename>helper.php</filename>
                  <filename>tmpl/default.php</filename>
                  <filename>tmpl/index.html</filename>
                  </files>
                      <config>
                  <install>
                      <sql>
                       <file driver="mysql" charset="utf8">sql/mysql/install.mysql.utf8.sql</file>
                       <file driver="sqlazure"   charset="utf8">sql/sqlazure/install.sqlazure.utf8.sql</file>
                  </sql>
                  </install>
                  
                  <uninstall>
                  <sql>
                       <file driver="mysql" charset="utf8">sql/mysql/uninstall.mysql.utf8.sql</file>
                       <file driver="sqlazure" charset="utf8">sql/sqlazure/uninstall.sqlazure.utf8.sql</file>
                   </sql>
                  </uninstall>
                  
                  <update> 
                  <schemas>
                      <schemapath type="mysql">sql/mysql/updates</schemapath> 
                      <schemapath type="sqlazure">sql/sqlazure/updates</schemapath> 
                  </schemas> 
                  </update>
                  
                  <fields name="params">
                  <fieldset name="basic">
                      <field name="lang" type="sql" default="1" label="Select a language" query="SELECT id AS value, lang FROM #__helloworld" />
                  </fieldset>
                  </fields>
                  
                  
                  </config>
                  
                  </extension>
                  

                  sql 目录是 C:xampphtdocsjoommodulesmod_helloworldsqlmysql 和 install.mysql.utf8.sql 文件是

                  and sql directory is C:xampphtdocsjoommodulesmod_helloworldsqlmysql and install.mysql.utf8.sql file is

                  CREATE TABLE IF NOT EXISTS `#__helloworld` (
                      `id` int(10) NOT NULL AUTO_INCREMENT,
                      `hello` text NOT NULL,
                      `lang` varchar(25) NOT NULL,
                  
                  PRIMARY KEY (`id`)
                  ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
                  
                  INSERT INTO `#__helloworld` (`hello`, `lang`) VALUES ('Hello World', 'en-GB');
                  INSERT INTO `#__helloworld` (`hello`, `lang`) VALUES ('Hola Mundo', 'es-ES');
                  INSERT INTO `#__helloworld` (`hello`, `lang`) VALUES ('Bonjour tout le monde', 'fr-  FR');  
                  

                  但它不起作用.数据库没有安装.我的错在哪里?请帮忙

                  but it dose not work. database not install. where my mistake? pls help

                  推荐答案

                  你需要在 files 标签中包含这些文件,像这样:

                  You need to include these files in files tag, like this:

                  <files>
                      <!-- The others files that you added -->
                      <filename>sql/mysql/install.mysql.utf8.sql</filename>
                      <filename>sql/sqlazure/install.sqlazure.utf8.sql</filename>
                      <filename>sql/mysql/uninstall.mysql.utf8.sql</filename>
                      <filename>sql/sqlazure/uninstall.sqlazure.utf8.sql</filename>
                      <filename>sql/sqlazure/updates</filename> <!-- Not sure about this one, sorry -->
                  </file>
                  

                  我也在学习,我不知道更新文件是否需要添加文件标签.将此与 Lodder 的回答结合起来.希望有用.

                  I'm learning too and i don't know if the updates file is necessary to add on files tag. Combine this with Lodder's answer. Hope be useful.

                  这篇关于joomla 2.5 模块 install.mysql.utf8.sql 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                  How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                  htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                  Joomla include database functions(Joomla 包含数据库功能)
                  nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                  Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)

                        <tbody id='ptXHj'></tbody>
                        <i id='ptXHj'><tr id='ptXHj'><dt id='ptXHj'><q id='ptXHj'><span id='ptXHj'><b id='ptXHj'><form id='ptXHj'><ins id='ptXHj'></ins><ul id='ptXHj'></ul><sub id='ptXHj'></sub></form><legend id='ptXHj'></legend><bdo id='ptXHj'><pre id='ptXHj'><center id='ptXHj'></center></pre></bdo></b><th id='ptXHj'></th></span></q></dt></tr></i><div id='ptXHj'><tfoot id='ptXHj'></tfoot><dl id='ptXHj'><fieldset id='ptXHj'></fieldset></dl></div>
                        <legend id='ptXHj'><style id='ptXHj'><dir id='ptXHj'><q id='ptXHj'></q></dir></style></legend>

                        <tfoot id='ptXHj'></tfoot>

                        <small id='ptXHj'></small><noframes id='ptXHj'>

                            <bdo id='ptXHj'></bdo><ul id='ptXHj'></ul>