标签

 mysql 

相关的文章:

Planet MySQL -

Applying Database Migrations in MySQL HeatWave With GitHub Actions

GitHub Actions allows DevOps to handle automated deployments. IN this post we talk about how you can use GitHub Actions in conjunction with Knex.js to apply database changes as part of the CI/CD pipeline.

AI生成摘要

相关推荐 去reddit讨论

Planet MySQL -

MySQL Shorts - Top 5 Countdown - #5

MySQL Shorts is a short-format video series dedicated to all things MySQL. This post is one in a series where we will count down the top 5 MySQL Shorts videos based on views.

AI生成摘要

相关推荐 去reddit讨论

布丁布丁吃什麼? -

在MySQL裡重置Koha使用者的密碼 / Reset Koha User Password in MySQL

最後還是到MySQL裡面修改了。 狀況 / Problem 參考Koha的安裝手冊,我將Koha建立完成後,設定了管理者的帳號與密碼。尷尬的是,我的帳號與密碼似乎是打錯字,導致後來帳號一直無法登入。 要怎麼重設管理者的密碼呢? MySQL https://lists.katipo.co.nz/public/koha/2018-May/050687.html  根據Michael Kuhn的建議,我們可以在Koha記錄使用者的表格borrowers裡找到該使用者,然後在裡面重置使用者的密碼。 使用者的密碼應該會看起來像是亂碼: $2a$08$dsPH1AD9y9llpQaE45sae.Wkfplp0a3P3GEllf0XKodDU3RR2Ue5e 這串密碼對應的明碼是「demo」。 也就是說,我們只要將使用者的密碼改為「$2a$08$dsPH1AD9y9llpQaE45sae.Wkfplp0a3P3GEllf0XKodDU3RR2Ue5e」,那該使用者就能用「demo」登入了。 取得Koha的資料庫帳號與密碼 / Get Koha’s database account and password https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages#Web_Installation  Koha在安裝過程中會為資料庫建立使用者koha_library跟一個亂數的密碼。根據Koha安裝手冊的說明,我們可以在登入伺服器後,用以下指令取得亂數密碼: sudo xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/library/koha-conf.xml;echo 有了帳號koha_library跟上述的密碼後,我們就能登入MySQL來修改了。 phpMyAdmin 儘管我們可以用指令來管理MySQL,但大多時候用圖形化介面來處理,還是比較簡單一點。 我們可以安裝phpMyAdmin來管理MySQL: sudo apt-get install -y phpmyadmin https://magefan.com/blog/how-to-install-phpmyadmin  其中有個步驟需要你打勾網頁伺服器,千萬不要錯過了。詳細的設定請看How to Install phpMyAdmin? 安裝完成後,就可以在網址後加上 /phpmyadmin 來開啟它。接著就能用koha_library跟上述密碼登入,並進入到borrowers表格裡修改資料了。 暫時關閉phpMyAdmin / Disable phpMyAdmin temporarily 設定完成之後,我建議暫時關閉phpMyAdmin,以免遭受不必要的攻擊。關閉的指令如下: sudo a2disconf phpmyadmin; sudo service apache2 restart  執行之後,phpMyAdmin就不能使用了。 如果要再開啟phpMyAdmin,則可以執行以下指令: sudo a2enconf phpmyadmin; sudo service apache2 restart 這樣就可以了。 最後要來問大家的是:你用過Koha嗎? 1. 用過,在課堂上操作過。 2. 用過,我工作的圖書館就是用Koha。 3. 沒有。 4. 其他,在下面留言吧! 在這篇文章中,我分享了解決Koha圖書館系統管理者密碼重設問題的方法。當忘記密碼時,我們可以透過MySQL來修改使用者的密碼,以便重新登入Koha。首先,我們需取得Koha的資料庫帳號和密碼,然後使用phpMyAdmin或命令行工具進行修改。 除此之外,我也提供了一個建議,即在不使用phpMyAdmin時,暫時關閉它,以保障系統的安全性。這有助於避免不必要的潛在風險。 最後,我向讀者提問是否有使用過Koha圖書館系統,並提供了選項讓他們分享他們的經驗。無論是在課堂上使用或在圖書館工作,或者其他情況下使用Koha,都歡迎在留言中分享。

AI生成摘要 这篇文章介绍了解决Koha图书馆系统管理员密码重设问题的方法。当忘记密码时,可以通过MySQL修改用户密码以重新登录Koha。首先,需要获取Koha的数据库账号和密码,然后使用phpMyAdmin或命令行工具进行修改。此外,建议在不使用phpMyAdmin时暂时关闭它,以确保系统安全。最后,作者询问读者是否使用过Koha图书馆系统,并提供选项让他们分享自己的经验。

相关推荐 去reddit讨论

Planet MySQL -

How to get MySQL Primary Keys in one minute

This blog post talks about one of the important MySQL configuration, sql_generate_invisible_primary_key, available in MySQL 8.0.30. This will save you from performance bottlenecks due to tables without Primary Key. If… The post How to get MySQL Primary Keys in one minute first appeared on Change Is Inevitable.

AI生成摘要 这篇博文介绍了MySQL 8.0.30中的一个重要配置项sql_generate_invisible_primary_key,它可以解决没有主键的表所带来的性能问题。通过设置该选项,可以动态生成缺少主键的表的隐藏主键,从而提高查询性能、简化数据管理,并不影响现有应用程序的运行。在MySQL 8.0.32中,该功能还进一步增强,可以确保生成的主键在复制过程中正确复制到副本。总之,启用sql_generate_invisible_primary_key可以优化MySQL性能和可靠性。

相关推荐 去reddit讨论

解道jdon.com -

使用 Java 将批量数据插入 MySQL

在本文中,我们将讨论如何将数据批量插入MySQL数据库,并且与插入每条记录相比,我们将讨论这样做的好处。 使用案例 我们从营销部门收到客户的 CSV 文件,我们的任务是向他们发送新营销活动的电子邮件。 作为开发人员,我们构建了流程,从该文件中读取每个客户数据,使用营销信息修改和丰富它们,并将记录插入数据库表和排队作业。 然后,排队的作业会读取它们并向每个客户发送电子邮件。 首先,我们需要向 pom XML 添加数据库驱动程序

AI生成摘要 本文讨论了如何将数据批量插入MySQL数据库的好处。通过使用PreparedStatement和批处理,可以将输入记录作为单个原子操作插入数据库,保证了批量操作的原子性。如果其中一条记录插入失败,事务将回滚。

相关推荐 去reddit讨论

Planet MySQL -

MySQL at DOAG 2023 – recap

Last week, from November 21 to 24, the DOAG Conference took place in Nuremberg, Germany. The MySQL Team was present at the Oracle booth. I attended the conference Thursday and Friday. There were 20 sessions tagged “MySQL” and one full day workshop dedicated to students. I delivered the first part of the workshop dedicated to MySQL for Developers, DBAs and Ops. My colleague Carsten who attended the full week, delivered the second part of the workshop dedicated to the MySQL offer in OCI: MySQL HeatWave and LakeHouse. The first day was a special “theme” day about Open Source Databases and other topics. Colin Charles talked about MySQL Security, Raphael Salguero presented the differences between Oracle Database, PostgreSQL and MySQL. There were also presentations about MySQL Clustering and HA from Matthias Jung and future directions of MySQL by Mughees Minhas. According to Carsten, the MySQL Innovation Release (8.2) and the plans for MySQL LTS sparked a lot of discussions, not just during the presentations but also during the breaks. The focus of the second DOAG day was only partially on OpenSource, but the questions and discussions continued into the morning at the Oracle booth. The tutorial attracted many participants who were attentive and receptive throughout the day. They were able to discover the specifics of MySQL such as MySQL Document Store, and the different architectures that are very easy to deploy using MySQL Shell: MySQL InnoDB Cluster, ClusterSet, and Read Replicas. They were also able to deploy a MySQL HeatWave instance in OCI and experience first-hand the power of HeatWave Cluster (Accelerator) to dramatically improve the slowest queries. I also attended Carsten’s presentation on the Future of MySQL & MySQL Heatwave where he highlighted the future additions to MySQL HeatWave and Lakehouse but also the support of new MySQL store procedures written in Javascript with GraalVM and future development around AI. As usual, the discussions around our booth and in the hallways were very interesting, and I talked to some clients who are in the process of migrating to MySQL HeatWave on OCI and are eager to use our query acceleration solution for their problematic OLAP workload due to the amount of data in their current MySQL environment. This type of discussions is very interesting, and the feedback is very constructive. It also emerges that many users really appreciate MySQL Shell ! During the event I also had the chance to finally meet in real life Mathias Jung, Oracle ACE for MySQL. This was a great event to meet the Oracle & MySQL Community, customers and also share our message with students and users not always aware of all the potential of MySQL. Many thanks to all our MySQL customers who came and see you next year for another great DOAG.

AI生成摘要 MySQL团队参加了在德国纽伦堡举行的DOAG会议。会议期间,有20个与MySQL相关的会议和一个专门针对学生的全天研讨会。MySQL创新发布(8.2版)和MySQL TLS计划引发了许多讨论。参与者了解了MySQL的特点,如MySQL文档存储和使用MySQL Shell部署的不同架构。他们还能够在OCI中部署MySQL HeatWave实例,并亲身体验到HeatWave集群(加速器)显著提高最慢查询的能力。讨论中还涉及到MySQL HeatWave在OCI上的迁移和使用情况。会议还提供了与Oracle和MySQL社区、客户以及学生和用户分享信息的机会。

相关推荐 去reddit讨论

Planet MySQL -

MySQL at DOAG 2023 - recap

Recap of DOAG 2023

AI生成摘要 上周,德国纽伦堡举办了DOAG会议,MySQL团队参与其中。会议期间,有20个与MySQL相关的会议和一天的学生专场研讨会。MySQL团队成员分别进行了关于MySQL开发、DBA和Ops的研讨会。会议期间,讨论了MySQL安全性、集群和高可用性以及未来发展方向等话题。参会者对MySQL HeatWave和LakeHouse的讨论也很热烈。会议期间,与客户的讨论非常有趣,许多用户对MySQL Shell表示赞赏。此次会议是与Oracle和MySQL社区、客户以及学生分享MySQL潜力的良机。

相关推荐 去reddit讨论

Planet MySQL -

Performance Improvements in MySQL 8.0.35

This blog post highlights the significant performance improvement made in the latest 8.0 version of MySQL Enterprise Edition

AI生成摘要

相关推荐 去reddit讨论

RBA的技术分享 -

macos big sur brew 安装Mysql 5.7 后无法启动问题修复

遇到的问题应该就是权限不对. 中间有过命令修改一些权限.也就是从上面那个stackoverflow中的一些修改: 有可能我在运行start前运行过此命令. 然后造成了权限错乱. 但是, 我重新安装后应该不会有这个问题. 重要的应该是big sur的bug. 在这个命令的修改下的回答里面也有相应的回复. 所以这个问题比较明显,就是big sur的兼容性. 具体问题由于环境问题和时间问题.没有做进一步的测试. 如果你也遇到这个问题可以一起讨论. 欢迎留言或者给我邮件.

AI生成摘要 这篇文章讲述了在安装和运行MySQL@5.7时遇到的问题。作者尝试了多种解决方法,包括重新安装和更改权限,但问题仍未解决。作者认为这可能是由于Big Sur操作系统的兼容性问题导致的。

相关推荐 去reddit讨论

Planet MySQL -

EXPLAIN INTO and EXPLAIN FOR SCHEMA in MySQL

In MySQL 8.1 and 8.2 we introduced EXPLAIN INTO and EXPLAIN FOR SCHEMA respectively, two extensions to the EXPLAIN query that can help doing most of your query optimization in the server, rather than a client program. These two features lay the groundwork for automatically running multiple EXPLAINs over multiple schemas without having to manually USE each schema or reenter the EXPLAIN output.

AI生成摘要

相关推荐 去reddit讨论

热榜 Top10
...
ShowMeBug
...
天勤数据
...
观测云
...
白鲸技术栈
...
LigaAI
...
eolink
...
Dify.AI
推荐或自荐