• <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 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                        <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>