Manual:Update.php/bn

Category:MediaWiki code/bn#Update.php

বিস্তারিত

update.php মিডিয়াউইকির বর্তমান সংস্করণের সাথে কাজ করার জন্য MediaWiki ডাটাবেস স্কিমা আপডেট করা প্রয়োজন কিনা তা পরীক্ষা করে। মিডিয়াউইকির প্রতিটি upgrade পরে অথবা একটি স্কিমা আপডেটের প্রয়োজন এমন একটি এক্সটেনশন আপডেট বা ইনস্টল করার পরে আপনার update.php চালানো উচিত। স্কিমা আপডেটের প্রয়োজন এমন বেশিরভাগ এক্সটেনশন তাদের ডকুমেন্টেশনে তাই বলবে।

এই রক্ষণাবেক্ষণ স্ক্রিপ্টটি $wgAllowSchemaUpdates এর মাধ্যমে নিষ্ক্রিয় করা যেতে পারে। অত্যন্ত বড় এবং ব্যস্ত উইকির লোকেদের যত্ন সহকারে আপগ্রেড করার প্রয়োজন হতে পারে, কিন্তু আপনি যদি নিশ্চিত না হন যে এটি আপনার ক্ষেত্রে প্রযোজ্য কিনা, তাহলে সম্ভবত এটি হবে না।

Usage

সতর্কীকরণ সতর্কীকরণ ডাটাবেসটিকে একটি অসামঞ্জস্যপূর্ণ অবস্থায় রেখে update.php ত্রুটি সহ প্রস্থান করতে পারে। স্ক্রিপ্ট চালানোর আগে সর্বদা backup ডাটাবেস!

ব্রাউজার থেকে

আপনার সার্ভারের কমান্ড লাইনে অ্যাক্সেস না থাকলে, আপডেট স্ক্রিপ্ট চালানোর জন্য ওয়েব আপডেটার ব্যবহার করুন।

ওয়েব আপডেটার

কমান্ড লাইন থেকে

কমান্ড লাইন থেকে, বা একটি SSH শেল বা অনুরূপ:

$ php maintenance/run.php update

Vagrant দৃষ্টান্তে নিম্নলিখিত ব্যবহার করুন (আপনার vagrant ssh এর মধ্যে থেকে)।

$ mwscript update.php

পরামিতি

এই স্ক্রিপ্টটি বেশ কিছু প্যারামিটার (জেনারিক, স্ক্রিপ্ট নির্ভর এবং স্ক্রিপ্ট নির্দিষ্ট) অফার করে যা কিছু উইকি পরিবেশে প্রয়োজন হতে পারে।

জেনেরিক রক্ষণাবেক্ষণ পরামিতি
--help
তাদের ব্যবহারের সংক্ষিপ্ত ব্যাখ্যা সহ সমস্ত উপলব্ধ স্ক্রিপ্ট প্যারামিটার (জেনারিক, স্ক্রিপ্ট নির্ভর এবং স্ক্রিপ্ট নির্দিষ্ট) একটি প্রম্পট পেতে ব্যবহৃত হয়। এগুলি কম প্রায়ই ব্যবহৃত পরামিতি।
--wiki wikiId
উইকি ফ্যামিলি আপডেট করুন যদি ডাটাবেসের নাম ভার্চুয়াল হোস্টের উপর নির্ভর করে, যেখানে উইকিআইডি - ডাটাবেসের নাম (যেমন enwiki, dewiki...)
--conf
Specifies the config file (the LocalSettings.php file for the specific wiki). Used for wiki families.

স্ক্রিপ্ট নির্দিষ্ট পরামিতি
--quick
কাউন্টডাউন ক্রম এড়িয়ে যান
--initial
(introduced in 1.43) Do initial updates required after manual installation using tables-generated.sql
--doshared
Update shared tables as well.
--noschema
All changes to the table structure or table additions are skipped. Only data changes are made.
--schema
No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.
Allows "update.php" to be run when $wgAllowSchemaUpdates is set to false. This is useful for non-WMF environments where strict DB permissions allow database updates (which "update.php" performs), but no schema changes (such as adding or dropping tables or indexes, which "update.php" also performs).
--force
Run this script even if configuration options disable it.
--skip-external-dependencies
when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.
সতর্কীকরণ সতর্কীকরণ Only recommended for use by developers.
--skip-config-validation
(introduced in 1.39) Skips checking whether the existing configuration is valid. Otherwise, this script will not run if an invalid configuration is detected.
--skip-compat-checks
(removed in 1.41) Skips compatibility checks (Gerrit change 851684)
--nopurge
(removed in 1.36) objectcache টেবিল পরিষ্কার করবেন না। সাধারণত update.php objectcache টেবিল (সাধারণত পার্সার ক্যাশে এবং বার্তা ক্যাশে থাকে), msg_resource এবং msg_resource_links (এগুলি $লোডার বার্তা ক্যাশে করার জন্য ব্যবহৃত হয় এবং 1.21 এবং পরবর্তীতে সাফ করা হয়) ডাটাবেসের টেবিলগুলিকে পরিষ্কার করে, যদি আপনি না চান এই টেবিলটি পরিষ্কার করুন, --nopurge বিকল্পটি ব্যবহার করুন।
Extensions can install/update their schemas using the LoadExtensionSchemaUpdates hook.

See also

Category:Maintenance scripts/bn#Update.php
Category:Maintenance scripts/bn Category:MediaWiki code/bn